modifyWorkspaceCreationProperties method

Future<void> modifyWorkspaceCreationProperties({
  1. required String resourceId,
  2. required WorkspaceCreationProperties workspaceCreationProperties,
})

Modify the default properties used to create WorkSpaces.

May throw AccessDeniedException. May throw InvalidParameterValuesException. May throw ResourceNotFoundException. May throw OperationNotSupportedException.

Parameter resourceId : The identifier of the directory.

Parameter workspaceCreationProperties : The default properties for creating WorkSpaces.

Implementation

Future<void> modifyWorkspaceCreationProperties({
  required String resourceId,
  required WorkspaceCreationProperties workspaceCreationProperties,
}) async {
  ArgumentError.checkNotNull(resourceId, 'resourceId');
  _s.validateStringLength(
    'resourceId',
    resourceId,
    10,
    65,
    isRequired: true,
  );
  ArgumentError.checkNotNull(
      workspaceCreationProperties, 'workspaceCreationProperties');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'WorkspacesService.ModifyWorkspaceCreationProperties'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ResourceId': resourceId,
      'WorkspaceCreationProperties': workspaceCreationProperties,
    },
  );
}