createStandbyWorkspaces method
Creates a standby WorkSpace in a secondary Region.
May throw AccessDeniedException.
May throw InvalidParameterValuesException.
May throw OperationNotSupportedException.
May throw ResourceLimitExceededException.
May throw ResourceNotFoundException.
Parameter primaryRegion :
The Region of the primary WorkSpace.
Parameter standbyWorkspaces :
Information about the standby WorkSpace to be created.
Implementation
Future<CreateStandbyWorkspacesResult> createStandbyWorkspaces({
required String primaryRegion,
required List<StandbyWorkspace> standbyWorkspaces,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'WorkspacesService.CreateStandbyWorkspaces'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'PrimaryRegion': primaryRegion,
'StandbyWorkspaces': standbyWorkspaces,
},
);
return CreateStandbyWorkspacesResult.fromJson(jsonResponse.body);
}