modifyWorkspaceCreationProperties method
Future<void>
modifyWorkspaceCreationProperties({
- required String resourceId,
- required WorkspaceCreationProperties workspaceCreationProperties,
Modify the default properties used to create WorkSpaces.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw OperationNotSupportedException.
May throw ResourceNotFoundException.
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 {
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,
},
);
}