modifyWorkspaceProperties method

Future<void> modifyWorkspaceProperties({
  1. required String workspaceId,
  2. required WorkspaceProperties workspaceProperties,
})

Modifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace.

May throw InvalidParameterValuesException. May throw InvalidResourceStateException. May throw OperationInProgressException. May throw UnsupportedWorkspaceConfigurationException. May throw ResourceNotFoundException. May throw AccessDeniedException. May throw ResourceUnavailableException.

Parameter workspaceId : The identifier of the WorkSpace.

Parameter workspaceProperties : The properties of the WorkSpace.

Implementation

Future<void> modifyWorkspaceProperties({
  required String workspaceId,
  required WorkspaceProperties workspaceProperties,
}) async {
  ArgumentError.checkNotNull(workspaceId, 'workspaceId');
  ArgumentError.checkNotNull(workspaceProperties, 'workspaceProperties');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.ModifyWorkspaceProperties'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'WorkspaceId': workspaceId,
      'WorkspaceProperties': workspaceProperties,
    },
  );
}