create_standby_workspaces
(**kwargs)¶Creates a standby WorkSpace in a secondary Region.
See also: AWS API Documentation
Request Syntax
response = client.create_standby_workspaces(
PrimaryRegion='string',
StandbyWorkspaces=[
{
'PrimaryWorkspaceId': 'string',
'VolumeEncryptionKey': 'string',
'DirectoryId': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
]
)
[REQUIRED]
The Region of the primary WorkSpace.
[REQUIRED]
Information about the standby WorkSpace to be created.
Describes a standby WorkSpace.
The identifier of the standby WorkSpace.
The volume encryption key of the standby WorkSpace.
The identifier of the directory for the standby WorkSpace.
The tags associated with the standby WorkSpace.
Describes a tag.
The key of the tag.
The value of the tag.
dict
Response Syntax
{
'FailedStandbyRequests': [
{
'StandbyWorkspaceRequest': {
'PrimaryWorkspaceId': 'string',
'VolumeEncryptionKey': 'string',
'DirectoryId': 'string',
'Tags': [
{
'Key': 'string',
'Value': 'string'
},
]
},
'ErrorCode': 'string',
'ErrorMessage': 'string'
},
],
'PendingStandbyRequests': [
{
'UserName': 'string',
'DirectoryId': 'string',
'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR',
'WorkspaceId': 'string'
},
]
}
Response Structure
(dict) --
FailedStandbyRequests (list) --
Information about the standby WorkSpace that could not be created.
(dict) --
Describes the standby WorkSpace that could not be created.
StandbyWorkspaceRequest (dict) --
Information about the standby WorkSpace that could not be created.
PrimaryWorkspaceId (string) --
The identifier of the standby WorkSpace.
VolumeEncryptionKey (string) --
The volume encryption key of the standby WorkSpace.
DirectoryId (string) --
The identifier of the directory for the standby WorkSpace.
Tags (list) --
The tags associated with the standby WorkSpace.
(dict) --
Describes a tag.
Key (string) --
The key of the tag.
Value (string) --
The value of the tag.
ErrorCode (string) --
The error code that is returned if the standby WorkSpace could not be created.
ErrorMessage (string) --
The text of the error message that is returned if the standby WorkSpace could not be created.
PendingStandbyRequests (list) --
Information about the standby WorkSpace that was created.
(dict) --
Information about the standby WorkSpace.
UserName (string) --
Describes the standby WorkSpace that was created.
Because this operation is asynchronous, the identifier returned is not immediately available for use with other operations. For example, if you call DescribeWorkspaces before the WorkSpace is created, the information returned can be incomplete.
DirectoryId (string) --
The identifier of the directory for the standby WorkSpace.
State (string) --
The operational state of the standby WorkSpace.
WorkspaceId (string) --
The identifier of the standby WorkSpace.
Exceptions
WorkSpaces.Client.exceptions.AccessDeniedException
WorkSpaces.Client.exceptions.InvalidParameterValuesException
WorkSpaces.Client.exceptions.OperationNotSupportedException
WorkSpaces.Client.exceptions.ResourceNotFoundException
WorkSpaces.Client.exceptions.ResourceLimitExceededException