WorkSpaces ********** Client ====== class WorkSpaces.Client A low-level client representing Amazon WorkSpaces Amazon WorkSpaces enables you to provision virtual, cloud-based Microsoft Windows or Amazon Linux desktops for your users, known as *WorkSpaces*. WorkSpaces eliminates the need to procure and deploy hardware or install complex software. You can quickly add or remove users as your needs change. Users can access their virtual desktops from multiple devices or web browsers. This API Reference provides detailed information about the actions, data types, parameters, and errors of the WorkSpaces service. For more information about the supported Amazon Web Services Regions, endpoints, and service quotas of the Amazon WorkSpaces service, see WorkSpaces endpoints and quotas in the *Amazon Web Services General Reference*. You can also manage your WorkSpaces resources using the WorkSpaces console, Command Line Interface (CLI), and SDKs. For more information about administering WorkSpaces, see the Amazon WorkSpaces Administration Guide. For more information about using the Amazon WorkSpaces client application or web browser to access provisioned WorkSpaces, see the Amazon WorkSpaces User Guide. For more information about using the CLI to manage your WorkSpaces resources, see the WorkSpaces section of the CLI Reference. import boto3 client = boto3.client('workspaces') These are the available methods: * accept_account_link_invitation * associate_connection_alias * associate_ip_groups * associate_workspace_application * authorize_ip_rules * can_paginate * close * copy_workspace_image * create_account_link_invitation * create_connect_client_add_in * create_connection_alias * create_ip_group * create_standby_workspaces * create_tags * create_updated_workspace_image * create_workspace_bundle * create_workspace_image * create_workspaces * create_workspaces_pool * delete_account_link_invitation * delete_client_branding * delete_connect_client_add_in * delete_connection_alias * delete_ip_group * delete_tags * delete_workspace_bundle * delete_workspace_image * deploy_workspace_applications * deregister_workspace_directory * describe_account * describe_account_modifications * describe_application_associations * describe_applications * describe_bundle_associations * describe_client_branding * describe_client_properties * describe_connect_client_add_ins * describe_connection_alias_permissions * describe_connection_aliases * describe_image_associations * describe_ip_groups * describe_tags * describe_workspace_associations * describe_workspace_bundles * describe_workspace_directories * describe_workspace_image_permissions * describe_workspace_images * describe_workspace_snapshots * describe_workspaces * describe_workspaces_connection_status * describe_workspaces_pool_sessions * describe_workspaces_pools * disassociate_connection_alias * disassociate_ip_groups * disassociate_workspace_application * get_account_link * get_paginator * get_waiter * import_client_branding * import_workspace_image * list_account_links * list_available_management_cidr_ranges * migrate_workspace * modify_account * modify_certificate_based_auth_properties * modify_client_properties * modify_endpoint_encryption_mode * modify_saml_properties * modify_selfservice_permissions * modify_streaming_properties * modify_workspace_access_properties * modify_workspace_creation_properties * modify_workspace_properties * modify_workspace_state * reboot_workspaces * rebuild_workspaces * register_workspace_directory * reject_account_link_invitation * restore_workspace * revoke_ip_rules * start_workspaces * start_workspaces_pool * stop_workspaces * stop_workspaces_pool * terminate_workspaces * terminate_workspaces_pool * terminate_workspaces_pool_session * update_connect_client_add_in * update_connection_alias_permission * update_rules_of_ip_group * update_workspace_bundle * update_workspace_image_permission * update_workspaces_pool Paginators ========== Paginators are available on a client instance via the "get_paginator" method. For more detailed instructions and examples on the usage of paginators, see the paginators user guide. The available paginators are: * DescribeAccountModifications * DescribeIpGroups * DescribeWorkspaceBundles * DescribeWorkspaceDirectories * DescribeWorkspaceImages * DescribeWorkspaces * DescribeWorkspacesConnectionStatus * ListAccountLinks * ListAvailableManagementCidrRanges WorkSpaces / Paginator / DescribeIpGroups DescribeIpGroups **************** class WorkSpaces.Paginator.DescribeIpGroups paginator = client.get_paginator('describe_ip_groups') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_ip_groups()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( GroupIds=[ 'string', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **GroupIds** (*list*) -- The identifiers of one or more IP access control groups. * *(string) --* * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Result': [ { 'groupId': 'string', 'groupName': 'string', 'groupDesc': 'string', 'userRules': [ { 'ipRule': 'string', 'ruleDesc': 'string' }, ] }, ], } **Response Structure** * *(dict) --* * **Result** *(list) --* Information about the IP access control groups. * *(dict) --* Describes an IP access control group. * **groupId** *(string) --* The identifier of the group. * **groupName** *(string) --* The name of the group. * **groupDesc** *(string) --* The description of the group. * **userRules** *(list) --* The rules. * *(dict) --* Describes a rule for an IP access control group. * **ipRule** *(string) --* The IP address range, in CIDR notation. * **ruleDesc** *(string) --* The description. WorkSpaces / Paginator / DescribeWorkspaces DescribeWorkspaces ****************** class WorkSpaces.Paginator.DescribeWorkspaces paginator = client.get_paginator('describe_workspaces') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_workspaces()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( WorkspaceIds=[ 'string', ], DirectoryId='string', UserName='string', BundleId='string', WorkspaceName='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **WorkspaceIds** (*list*) -- The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned. * *(string) --* * **DirectoryId** (*string*) -- The identifier of the directory. In addition, you can optionally specify a specific directory user (see "UserName"). You cannot combine this parameter with any other filter. * **UserName** (*string*) -- The name of the directory user. You must specify this parameter with "DirectoryId". * **BundleId** (*string*) -- The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter. * **WorkspaceName** (*string*) -- The name of the user- decoupled WorkSpace. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Workspaces': [ { 'WorkspaceId': 'string', 'DirectoryId': 'string', 'UserName': 'string', 'IpAddress': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'BundleId': 'string', 'SubnetId': 'string', 'ErrorMessage': 'string', 'ErrorCode': 'string', 'ComputerName': 'string', 'VolumeEncryptionKey': 'string', 'UserVolumeEncryptionEnabled': True|False, 'RootVolumeEncryptionEnabled': True|False, 'WorkspaceName': 'string', 'WorkspaceProperties': { 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, 'ModificationStates': [ { 'Resource': 'ROOT_VOLUME'|'USER_VOLUME'|'COMPUTE_TYPE', 'State': 'UPDATE_INITIATED'|'UPDATE_IN_PROGRESS' }, ], 'RelatedWorkspaces': [ { 'WorkspaceId': 'string', 'Region': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'Type': 'PRIMARY'|'STANDBY' }, ], 'DataReplicationSettings': { 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, 'StandbyWorkspacesProperties': [ { 'StandbyWorkspaceId': 'string', 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, ] }, ], } **Response Structure** * *(dict) --* * **Workspaces** *(list) --* Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete. * *(dict) --* Describes a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **DirectoryId** *(string) --* The identifier of the Directory Service directory for the WorkSpace. * **UserName** *(string) --* The user for the WorkSpace. * **IpAddress** *(string) --* The IP address of the WorkSpace. * **State** *(string) --* The operational state of the WorkSpace. * "PENDING" – The WorkSpace is in a waiting state (for example, the WorkSpace is being created). * "AVAILABLE" – The WorkSpace is running and has passed the health checks. * "IMPAIRED" – Refer to "UNHEALTHY" state. * "UNHEALTHY" – The WorkSpace is not responding to health checks. * "REBOOTING" – The WorkSpace is being rebooted (restarted). * "STARTING" – The WorkSpace is starting up and health checks are being run. * "REBUILDING" – The WorkSpace is being rebuilt. * "RESTORING" – The WorkSpace is being restored. * "MAINTENANCE" – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services. * "ADMIN_MAINTENANCE" – The WorkSpace is undergoing maintenance by the WorkSpaces administrator. * "TERMINATING" – The WorkSpace is being deleted. * "TERMINATED" – The WorkSpace has been deleted. * "SUSPENDED" – The WorkSpace has been suspended for image creation. * "UPDATING" – The WorkSpace is undergoing an update. * "STOPPING" – The WorkSpace is being stopped. * "STOPPED" – The WorkSpace has been stopped. * "ERROR" – The WorkSpace is an error state (for example, an error occurred during startup). Note: After a WorkSpace is terminated, the "TERMINATED" state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. * **BundleId** *(string) --* The identifier of the bundle used to create the WorkSpace. * **SubnetId** *(string) --* The identifier of the subnet for the WorkSpace. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be created. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be created. * **ComputerName** *(string) --* The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace. * **VolumeEncryptionKey** *(string) --* The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys. * **UserVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the user volume is encrypted. * **RootVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the root volume is encrypted. * **WorkspaceName** *(string) --* The name of the user-decoupled WorkSpace. * **WorkspaceProperties** *(dict) --* The properties of the WorkSpace. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **ModificationStates** *(list) --* The modification states of the WorkSpace. * *(dict) --* Describes a WorkSpace modification. * **Resource** *(string) --* The resource. * **State** *(string) --* The modification state. * **RelatedWorkspaces** *(list) --* The standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * *(dict) --* Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * **WorkspaceId** *(string) --* The identifier of the related WorkSpace. * **Region** *(string) --* The Region of the related WorkSpace. * **State** *(string) --* Indicates the state of the WorkSpace. * **Type** *(string) --* Indicates the type of WorkSpace. * **DataReplicationSettings** *(dict) --* Indicates the settings of the data replication. * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. * **StandbyWorkspacesProperties** *(list) --* The properties of the standby WorkSpace * *(dict) --* Describes the properties of the related standby WorkSpaces. * **StandbyWorkspaceId** *(string) --* The identifier of the standby WorkSpace * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. WorkSpaces / Paginator / DescribeWorkspacesConnectionStatus DescribeWorkspacesConnectionStatus ********************************** class WorkSpaces.Paginator.DescribeWorkspacesConnectionStatus paginator = client.get_paginator('describe_workspaces_connection_status') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_workspaces_connection_status()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( WorkspaceIds=[ 'string', ], PaginationConfig={ 'MaxItems': 123, 'StartingToken': 'string' } ) Parameters: * **WorkspaceIds** (*list*) -- The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. * *(string) --* * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'WorkspacesConnectionStatus': [ { 'WorkspaceId': 'string', 'ConnectionState': 'CONNECTED'|'DISCONNECTED'|'UNKNOWN', 'ConnectionStateCheckTimestamp': datetime(2015, 1, 1), 'LastKnownUserConnectionTimestamp': datetime(2015, 1, 1) }, ], } **Response Structure** * *(dict) --* * **WorkspacesConnectionStatus** *(list) --* Information about the connection status of the WorkSpace. * *(dict) --* Describes the connection status of a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ConnectionState** *(string) --* The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped. * **ConnectionStateCheckTimestamp** *(datetime) --* The timestamp of the connection status check. * **LastKnownUserConnectionTimestamp** *(datetime) --* The timestamp of the last known user connection. WorkSpaces / Paginator / DescribeWorkspaceImages DescribeWorkspaceImages *********************** class WorkSpaces.Paginator.DescribeWorkspaceImages paginator = client.get_paginator('describe_workspace_images') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_workspace_images()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( ImageIds=[ 'string', ], ImageType='OWNED'|'SHARED', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **ImageIds** (*list*) -- The identifier of the image. * *(string) --* * **ImageType** (*string*) -- The type (owned or shared) of the image. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Images': [ { 'ImageId': 'string', 'Name': 'string', 'Description': 'string', 'OperatingSystem': { 'Type': 'WINDOWS'|'LINUX' }, 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'RequiredTenancy': 'DEFAULT'|'DEDICATED', 'ErrorCode': 'string', 'ErrorMessage': 'string', 'Created': datetime(2015, 1, 1), 'OwnerAccountId': 'string', 'Updates': { 'UpdateAvailable': True|False, 'Description': 'string' }, 'ErrorDetails': [ { 'ErrorCode': 'OutdatedPowershellVersion'|'OfficeInstalled'|'PCoIPAgentInstalled'|'WindowsUpdatesEnabled'|'AutoMountDisabled'|'WorkspacesBYOLAccountNotFound'|'WorkspacesBYOLAccountDisabled'|'DHCPDisabled'|'DiskFreeSpace'|'AdditionalDrivesAttached'|'OSNotSupported'|'DomainJoined'|'AzureDomainJoined'|'FirewallEnabled'|'VMWareToolsInstalled'|'DiskSizeExceeded'|'IncompatiblePartitioning'|'PendingReboot'|'AutoLogonEnabled'|'RealTimeUniversalDisabled'|'MultipleBootPartition'|'Requires64BitOS'|'ZeroRearmCount'|'InPlaceUpgrade'|'AntiVirusInstalled'|'UEFINotSupported'|'UnknownError'|'AppXPackagesInstalled'|'ReservedStorageInUse'|'AdditionalDrivesPresent'|'WindowsUpdatesRequired'|'SysPrepFileMissing'|'UserProfileMissing'|'InsufficientDiskSpace'|'EnvironmentVariablesPathMissingEntries'|'DomainAccountServicesFound'|'InvalidIp'|'RemoteDesktopServicesDisabled'|'WindowsModulesInstallerDisabled'|'AmazonSsmAgentEnabled'|'UnsupportedSecurityProtocol'|'MultipleUserProfiles'|'StagedAppxPackage'|'UnsupportedOsUpgrade'|'InsufficientRearmCount'|'ProtocolOSIncompatibility'|'MemoryIntegrityIncompatibility'|'RestrictedDriveLetterInUse', 'ErrorMessage': 'string' }, ] }, ], } **Response Structure** * *(dict) --* * **Images** *(list) --* Information about the images. * *(dict) --* Describes a WorkSpace image. * **ImageId** *(string) --* The identifier of the image. * **Name** *(string) --* The name of the image. * **Description** *(string) --* The description of the image. * **OperatingSystem** *(dict) --* The operating system that the image is running. * **Type** *(string) --* The operating system. * **State** *(string) --* The status of the image. * **RequiredTenancy** *(string) --* Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to "DEDICATED". For more information, see Bring Your Own Windows Desktop Images. * **ErrorCode** *(string) --* The error code that is returned for the image. * **ErrorMessage** *(string) --* The text of the error message that is returned for the image. * **Created** *(datetime) --* The date when the image was created. If the image has been shared, the Amazon Web Services account that the image has been shared with sees the original creation date of the image. * **OwnerAccountId** *(string) --* The identifier of the Amazon Web Services account that owns the image. * **Updates** *(dict) --* The updates (if any) that are available for the specified image. * **UpdateAvailable** *(boolean) --* Indicates whether updated drivers or other components are available for the specified WorkSpace image. * **Description** *(string) --* A description of whether updates for the WorkSpace image are pending or available. * **ErrorDetails** *(list) --* Additional details of the error returned for the image, including the possible causes of the errors and troubleshooting information. * *(dict) --* Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information. * **ErrorCode** *(string) --* Indicates the error code returned. * **ErrorMessage** *(string) --* The text of the error message related the error code. WorkSpaces / Paginator / ListAvailableManagementCidrRanges ListAvailableManagementCidrRanges ********************************* class WorkSpaces.Paginator.ListAvailableManagementCidrRanges paginator = client.get_paginator('list_available_management_cidr_ranges') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.list_available_management_cidr_ranges()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( ManagementCidrRangeConstraint='string', PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **ManagementCidrRangeConstraint** (*string*) -- **[REQUIRED]** The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'ManagementCidrRanges': [ 'string', ], } **Response Structure** * *(dict) --* * **ManagementCidrRanges** *(list) --* The list of available IP address ranges, specified as IPv4 CIDR blocks. * *(string) --* WorkSpaces / Paginator / DescribeAccountModifications DescribeAccountModifications **************************** class WorkSpaces.Paginator.DescribeAccountModifications paginator = client.get_paginator('describe_account_modifications') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_account_modifications()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( PaginationConfig={ 'MaxItems': 123, 'StartingToken': 'string' } ) Parameters: **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max- items then a "NextToken" will be provided in the output that you can use to resume pagination. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'AccountModifications': [ { 'ModificationState': 'PENDING'|'COMPLETED'|'FAILED', 'DedicatedTenancySupport': 'ENABLED'|'DISABLED', 'DedicatedTenancyManagementCidrRange': 'string', 'StartTime': datetime(2015, 1, 1), 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ], } **Response Structure** * *(dict) --* * **AccountModifications** *(list) --* The list of modifications to the configuration of BYOL. * *(dict) --* Describes a modification to the configuration of Bring Your Own License (BYOL) for the specified account. * **ModificationState** *(string) --* The state of the modification to the configuration of BYOL. * **DedicatedTenancySupport** *(string) --* The status of BYOL (whether BYOL is being enabled or disabled). * **DedicatedTenancyManagementCidrRange** *(string) --* The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account. * **StartTime** *(datetime) --* The timestamp when the modification of the BYOL configuration was started. * **ErrorCode** *(string) --* The error code that is returned if the configuration of BYOL cannot be modified. * **ErrorMessage** *(string) --* The text of the error message that is returned if the configuration of BYOL cannot be modified. WorkSpaces / Paginator / ListAccountLinks ListAccountLinks **************** class WorkSpaces.Paginator.ListAccountLinks paginator = client.get_paginator('list_account_links') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.list_account_links()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( LinkStatusFilter=[ 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', ], PaginationConfig={ 'MaxItems': 123, 'PageSize': 123, 'StartingToken': 'string' } ) Parameters: * **LinkStatusFilter** (*list*) -- Filters the account based on their link status. * *(string) --* * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **PageSize** *(integer) --* The size of each page. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'AccountLinks': [ { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' }, ], } **Response Structure** * *(dict) --* * **AccountLinks** *(list) --* Information about the account links. * *(dict) --* Information about about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. WorkSpaces / Paginator / DescribeWorkspaceBundles DescribeWorkspaceBundles ************************ class WorkSpaces.Paginator.DescribeWorkspaceBundles paginator = client.get_paginator('describe_workspace_bundles') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_workspace_bundles()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( BundleIds=[ 'string', ], Owner='string', PaginationConfig={ 'MaxItems': 123, 'StartingToken': 'string' } ) Parameters: * **BundleIds** (*list*) -- The identifiers of the bundles. You cannot combine this parameter with any other filter. * *(string) --* * **Owner** (*string*) -- The owner of the bundles. You cannot combine this parameter with any other filter. To describe the bundles provided by Amazon Web Services, specify "AMAZON". To describe the bundles that belong to your account, don't specify a value. * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Bundles': [ { 'BundleId': 'string', 'Name': 'string', 'Owner': 'string', 'Description': 'string', 'ImageId': 'string', 'RootStorage': { 'Capacity': 'string' }, 'UserStorage': { 'Capacity': 'string' }, 'ComputeType': { 'Name': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN' }, 'LastUpdatedTime': datetime(2015, 1, 1), 'CreationTime': datetime(2015, 1, 1), 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'BundleType': 'REGULAR'|'STANDBY' }, ], } **Response Structure** * *(dict) --* * **Bundles** *(list) --* Information about the bundles. * *(dict) --* Describes a WorkSpace bundle. * **BundleId** *(string) --* The identifier of the bundle. * **Name** *(string) --* The name of the bundle. * **Owner** *(string) --* The owner of the bundle. This is the account identifier of the owner, or "AMAZON" if the bundle is provided by Amazon Web Services. * **Description** *(string) --* The description of the bundle. * **ImageId** *(string) --* The identifier of the image that was used to create the bundle. * **RootStorage** *(dict) --* The size of the root volume. * **Capacity** *(string) --* The size of the root volume. * **UserStorage** *(dict) --* The size of the user volume. * **Capacity** *(string) --* The size of the user volume. * **ComputeType** *(dict) --* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. * **Name** *(string) --* The compute type. * **LastUpdatedTime** *(datetime) --* The last time that the bundle was updated. * **CreationTime** *(datetime) --* The time when the bundle was created. * **State** *(string) --* The state of the WorkSpace bundle. * **BundleType** *(string) --* The type of WorkSpace bundle. WorkSpaces / Paginator / DescribeWorkspaceDirectories DescribeWorkspaceDirectories **************************** class WorkSpaces.Paginator.DescribeWorkspaceDirectories paginator = client.get_paginator('describe_workspace_directories') paginate(**kwargs) Creates an iterator that will paginate through responses from "WorkSpaces.Client.describe_workspace_directories()". See also: AWS API Documentation **Request Syntax** response_iterator = paginator.paginate( DirectoryIds=[ 'string', ], WorkspaceDirectoryNames=[ 'string', ], Limit=123, Filters=[ { 'Name': 'USER_IDENTITY_TYPE'|'WORKSPACE_TYPE', 'Values': [ 'string', ] }, ], PaginationConfig={ 'MaxItems': 123, 'StartingToken': 'string' } ) Parameters: * **DirectoryIds** (*list*) -- The identifiers of the directories. If the value is null, all directories are retrieved. * *(string) --* * **WorkspaceDirectoryNames** (*list*) -- The names of the WorkSpace directories. * *(string) --* * **Limit** (*integer*) -- The maximum number of directories to return. * **Filters** (*list*) -- The filter condition for the WorkSpaces. * *(dict) --* Describes the filter conditions for the WorkSpaces to return. * **Name** *(string) --* **[REQUIRED]** The name of the WorkSpaces to filter. * **Values** *(list) --* **[REQUIRED]** The values for filtering WorkSpaces * *(string) --* * **PaginationConfig** (*dict*) -- A dictionary that provides parameters to control pagination. * **MaxItems** *(integer) --* The total number of items to return. If the total number of items available is more than the value specified in max-items then a "NextToken" will be provided in the output that you can use to resume pagination. * **StartingToken** *(string) --* A token to specify where to start paginating. This is the "NextToken" from a previous response. Return type: dict Returns: **Response Syntax** { 'Directories': [ { 'DirectoryId': 'string', 'Alias': 'string', 'DirectoryName': 'string', 'RegistrationCode': 'string', 'SubnetIds': [ 'string', ], 'DnsIpAddresses': [ 'string', ], 'CustomerUserName': 'string', 'IamRoleId': 'string', 'DirectoryType': 'SIMPLE_AD'|'AD_CONNECTOR'|'CUSTOMER_MANAGED'|'AWS_IAM_IDENTITY_CENTER', 'WorkspaceSecurityGroupId': 'string', 'State': 'REGISTERING'|'REGISTERED'|'DEREGISTERING'|'DEREGISTERED'|'ERROR', 'WorkspaceCreationProperties': { 'EnableInternetAccess': True|False, 'DefaultOu': 'string', 'CustomSecurityGroupId': 'string', 'UserEnabledAsLocalAdministrator': True|False, 'EnableMaintenanceMode': True|False, 'InstanceIamRoleArn': 'string' }, 'ipGroupIds': [ 'string', ], 'WorkspaceAccessProperties': { 'DeviceTypeWindows': 'ALLOW'|'DENY', 'DeviceTypeOsx': 'ALLOW'|'DENY', 'DeviceTypeWeb': 'ALLOW'|'DENY', 'DeviceTypeIos': 'ALLOW'|'DENY', 'DeviceTypeAndroid': 'ALLOW'|'DENY', 'DeviceTypeChromeOs': 'ALLOW'|'DENY', 'DeviceTypeZeroClient': 'ALLOW'|'DENY', 'DeviceTypeLinux': 'ALLOW'|'DENY', 'DeviceTypeWorkSpacesThinClient': 'ALLOW'|'DENY', 'AccessEndpointConfig': { 'AccessEndpoints': [ { 'AccessEndpointType': 'STREAMING_WSP', 'VpcEndpointId': 'string' }, ], 'InternetFallbackProtocols': [ 'PCOIP', ] } }, 'Tenancy': 'DEDICATED'|'SHARED', 'SelfservicePermissions': { 'RestartWorkspace': 'ENABLED'|'DISABLED', 'IncreaseVolumeSize': 'ENABLED'|'DISABLED', 'ChangeComputeType': 'ENABLED'|'DISABLED', 'SwitchRunningMode': 'ENABLED'|'DISABLED', 'RebuildWorkspace': 'ENABLED'|'DISABLED' }, 'SamlProperties': { 'Status': 'DISABLED'|'ENABLED'|'ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK', 'UserAccessUrl': 'string', 'RelayStateParameterName': 'string' }, 'CertificateBasedAuthProperties': { 'Status': 'DISABLED'|'ENABLED', 'CertificateAuthorityArn': 'string' }, 'EndpointEncryptionMode': 'STANDARD_TLS'|'FIPS_VALIDATED', 'MicrosoftEntraConfig': { 'TenantId': 'string', 'ApplicationConfigSecretArn': 'string' }, 'WorkspaceDirectoryName': 'string', 'WorkspaceDirectoryDescription': 'string', 'UserIdentityType': 'CUSTOMER_MANAGED'|'AWS_DIRECTORY_SERVICE'|'AWS_IAM_IDENTITY_CENTER', 'WorkspaceType': 'PERSONAL'|'POOLS', 'IDCConfig': { 'InstanceArn': 'string', 'ApplicationArn': 'string' }, 'ActiveDirectoryConfig': { 'DomainName': 'string', 'ServiceAccountSecretArn': 'string' }, 'StreamingProperties': { 'StreamingExperiencePreferredProtocol': 'TCP'|'UDP', 'UserSettings': [ { 'Action': 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE'|'CLIPBOARD_COPY_TO_LOCAL_DEVICE'|'PRINTING_TO_LOCAL_DEVICE'|'SMART_CARD', 'Permission': 'ENABLED'|'DISABLED', 'MaximumLength': 123 }, ], 'StorageConnectors': [ { 'ConnectorType': 'HOME_FOLDER', 'Status': 'ENABLED'|'DISABLED' }, ], 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED', 'PreferredProtocol': 'TCP'|'NONE' } }, 'ErrorMessage': 'string' }, ], } **Response Structure** * *(dict) --* * **Directories** *(list) --* Information about the directories. * *(dict) --* Describes a directory that is used with Amazon WorkSpaces. * **DirectoryId** *(string) --* The directory identifier. * **Alias** *(string) --* The directory alias. * **DirectoryName** *(string) --* The name of the directory. * **RegistrationCode** *(string) --* The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory. * **SubnetIds** *(list) --* The identifiers of the subnets used with the directory. * *(string) --* * **DnsIpAddresses** *(list) --* The IP addresses of the DNS servers for the directory. * *(string) --* * **CustomerUserName** *(string) --* The user name for the service account. * **IamRoleId** *(string) --* The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf. * **DirectoryType** *(string) --* The directory type. * **WorkspaceSecurityGroupId** *(string) --* The identifier of the security group that is assigned to new WorkSpaces. * **State** *(string) --* The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the "DEREGISTERED" state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered. * **WorkspaceCreationProperties** *(dict) --* The default creation properties for all WorkSpaces in the directory. * **EnableInternetAccess** *(boolean) --* Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default. If enabled, the Elastic public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces. * **DefaultOu** *(string) --* The organizational unit (OU) in the directory for the WorkSpace machine accounts. * **CustomSecurityGroupId** *(string) --* The identifier of the default security group to apply to WorkSpaces when they are created. For more information, see Security Groups for Your WorkSpaces. * **UserEnabledAsLocalAdministrator** *(boolean) --* Specifies whether WorkSpace users are local administrators on their WorkSpaces. * **EnableMaintenanceMode** *(boolean) --* Specifies whether maintenance mode is enabled for WorkSpaces. For more information, see WorkSpace Maintenance. * **InstanceIamRoleArn** *(string) --* Indicates the IAM role ARN of the instance. * **ipGroupIds** *(list) --* The identifiers of the IP access control groups associated with the directory. * *(string) --* * **WorkspaceAccessProperties** *(dict) --* The devices and operating systems that users can use to access WorkSpaces. * **DeviceTypeWindows** *(string) --* Indicates whether users can use Windows clients to access their WorkSpaces. * **DeviceTypeOsx** *(string) --* Indicates whether users can use macOS clients to access their WorkSpaces. * **DeviceTypeWeb** *(string) --* Indicates whether users can access their WorkSpaces through a web browser. * **DeviceTypeIos** *(string) --* Indicates whether users can use iOS devices to access their WorkSpaces. * **DeviceTypeAndroid** *(string) --* Indicates whether users can use Android and Android-compatible Chrome OS devices to access their WorkSpaces. * **DeviceTypeChromeOs** *(string) --* Indicates whether users can use Chromebooks to access their WorkSpaces. * **DeviceTypeZeroClient** *(string) --* Indicates whether users can use zero client devices to access their WorkSpaces. * **DeviceTypeLinux** *(string) --* Indicates whether users can use Linux clients to access their WorkSpaces. * **DeviceTypeWorkSpacesThinClient** *(string) --* Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client. * **AccessEndpointConfig** *(dict) --* Specifies the configuration for accessing the WorkSpace. * **AccessEndpoints** *(list) --* Indicates a list of access endpoints associated with this directory. * *(dict) --* Describes the access type and endpoint for a WorkSpace. * **AccessEndpointType** *(string) --* Indicates the type of access endpoint. * **VpcEndpointId** *(string) --* Indicates the VPC endpoint to use for access. * **InternetFallbackProtocols** *(list) --* Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available. * *(string) --* * **Tenancy** *(string) --* Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to "DEDICATED". For more information, see Bring Your Own Windows Desktop Images. * **SelfservicePermissions** *(dict) --* The default self-service permissions for WorkSpaces in the directory. * **RestartWorkspace** *(string) --* Specifies whether users can restart their WorkSpace. * **IncreaseVolumeSize** *(string) --* Specifies whether users can increase the volume size of the drives on their WorkSpace. * **ChangeComputeType** *(string) --* Specifies whether users can change the compute type (bundle) for their WorkSpace. * **SwitchRunningMode** *(string) --* Specifies whether users can switch the running mode of their WorkSpace. * **RebuildWorkspace** *(string) --* Specifies whether users can rebuild the operating system of a WorkSpace to its original state. * **SamlProperties** *(dict) --* Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider. * **Status** *(string) --* Indicates the status of SAML 2.0 authentication. These statuses include the following. * If the setting is "DISABLED", end users will be directed to login with their directory credentials. * If the setting is "ENABLED", end users will be directed to login via the user access URL. Users attempting to connect to WorkSpaces from a client application that does not support SAML 2.0 authentication will not be able to connect. * If the setting is "ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK", end users will be directed to login via the user access URL on supported client applications, but will not prevent clients that do not support SAML 2.0 authentication from connecting as if SAML 2.0 authentication was disabled. * **UserAccessUrl** *(string) --* The SAML 2.0 identity provider (IdP) user access URL is the URL a user would navigate to in their web browser in order to federate from the IdP and directly access the application, without any SAML 2.0 service provider (SP) bindings. * **RelayStateParameterName** *(string) --* The relay state parameter name supported by the SAML 2.0 identity provider (IdP). When the end user is redirected to the user access URL from the WorkSpaces client application, this relay state parameter name is appended as a query parameter to the URL along with the relay state endpoint to return the user to the client application session. To use SAML 2.0 authentication with WorkSpaces, the IdP must support IdP-initiated deep linking for the relay state URL. Consult your IdP documentation for more information. * **CertificateBasedAuthProperties** *(dict) --* The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces login. * **Status** *(string) --* The status of the certificate-based authentication properties. * **CertificateAuthorityArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource. * **EndpointEncryptionMode** *(string) --* Endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode. * **MicrosoftEntraConfig** *(dict) --* Specifies details about Microsoft Entra configurations. * **TenantId** *(string) --* The identifier of the tenant. * **ApplicationConfigSecretArn** *(string) --* The Amazon Resource Name (ARN) of the application config. * **WorkspaceDirectoryName** *(string) --* The name fo the WorkSpace directory. * **WorkspaceDirectoryDescription** *(string) --* The description of the WorkSpace directory * **UserIdentityType** *(string) --* Indicates the identity type of the specifired user. * **WorkspaceType** *(string) --* Indicates whether the directory's WorkSpace type is personal or pools. * **IDCConfig** *(dict) --* Specifies details about identity center configurations. * **InstanceArn** *(string) --* The Amazon Resource Name (ARN) of the identity center instance. * **ApplicationArn** *(string) --* The Amazon Resource Name (ARN) of the application. * **ActiveDirectoryConfig** *(dict) --* Information about the Active Directory config. * **DomainName** *(string) --* The name of the domain. * **ServiceAccountSecretArn** *(string) --* Indicates the secret ARN on the service account. * **StreamingProperties** *(dict) --* The streaming properties to configure. * **StreamingExperiencePreferredProtocol** *(string) --* Indicates the type of preferred protocol for the streaming experience. * **UserSettings** *(list) --* Indicates the permission settings asscoiated with the user. * *(dict) --* Information about the user's permission settings. * **Action** *(string) --* Indicates the type of action. * **Permission** *(string) --* Indicates if the setting is enabled or disabled. * **MaximumLength** *(integer) --* Indicates the maximum character length for the specified user setting. * **StorageConnectors** *(list) --* Indicates the storage connector used * *(dict) --* Describes the storage connector. * **ConnectorType** *(string) --* The type of connector used to save user files. * **Status** *(string) --* Indicates if the storage connetor is enabled or disabled. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for directory is enabled or disabled. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **ErrorMessage** *(string) --* The error message returned. WorkSpaces / Client / get_paginator get_paginator ************* WorkSpaces.Client.get_paginator(operation_name) Create a paginator for an operation. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Raises: **OperationNotPageableError** -- Raised if the operation is not pageable. You can use the "client.can_paginate" method to check if an operation is pageable. Return type: "botocore.paginate.Paginator" Returns: A paginator object. WorkSpaces / Client / create_connection_alias create_connection_alias *********************** WorkSpaces.Client.create_connection_alias(**kwargs) Creates the specified connection alias for use with cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.create_connection_alias( ConnectionString='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ConnectionString** (*string*) -- **[REQUIRED]** A connection string in the form of a fully qualified domain name (FQDN), such as "www.example.com". Warning: After you create a connection string, it is always associated to your Amazon Web Services account. You cannot recreate the same connection string with a different account, even if you delete all instances of it from the original account. The connection string is globally reserved for your account. * **Tags** (*list*) -- The tags to associate with the connection alias. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'AliasId': 'string' } **Response Structure** * *(dict) --* * **AliasId** *(string) --* The identifier of the connection alias. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / terminate_workspaces terminate_workspaces ******************** WorkSpaces.Client.terminate_workspaces(**kwargs) Terminates the specified WorkSpaces. Warning: Terminating a WorkSpace is a permanent action and cannot be undone. The user's data is destroyed. If you need to archive any user data, contact Amazon Web ServicesSupport before terminating the WorkSpace. You can terminate a WorkSpace that is in any state except "SUSPENDED". This operation is asynchronous and returns before the WorkSpaces have been completely terminated. After a WorkSpace is terminated, the "TERMINATED" state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. Note: Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again. See also: AWS API Documentation **Request Syntax** response = client.terminate_workspaces( TerminateWorkspaceRequests=[ { 'WorkspaceId': 'string' }, ] ) Parameters: **TerminateWorkspaceRequests** (*list*) -- **[REQUIRED]** The WorkSpaces to terminate. You can specify up to 25 WorkSpaces. * *(dict) --* Describes the information used to terminate a WorkSpace. * **WorkspaceId** *(string) --* **[REQUIRED]** The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceId': 'string', 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpaces that could not be terminated. * *(dict) --* Describes a WorkSpace that could not be rebooted. ( RebootWorkspaces), rebuilt ( RebuildWorkspaces), restored ( RestoreWorkspace), terminated ( TerminateWorkspaces), started ( StartWorkspaces), or stopped ( StopWorkspaces). * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be rebooted. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be rebooted. WorkSpaces / Client / describe_workspace_image_permissions describe_workspace_image_permissions ************************************ WorkSpaces.Client.describe_workspace_image_permissions(**kwargs) Describes the permissions that the owner of an image has granted to other Amazon Web Services accounts for an image. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_image_permissions( ImageId='string', NextToken='string', MaxResults=123 ) Parameters: * **ImageId** (*string*) -- **[REQUIRED]** The identifier of the image. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **MaxResults** (*integer*) -- The maximum number of items to return. Return type: dict Returns: **Response Syntax** { 'ImageId': 'string', 'ImagePermissions': [ { 'SharedAccountId': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ImageId** *(string) --* The identifier of the image. * **ImagePermissions** *(list) --* The identifiers of the Amazon Web Services accounts that the image has been shared with. * *(dict) --* Describes the Amazon Web Services accounts that have been granted permission to use a shared image. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image. * **SharedAccountId** *(string) --* The identifier of the Amazon Web Services account that an image has been shared with. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / describe_application_associations describe_application_associations ********************************* WorkSpaces.Client.describe_application_associations(**kwargs) Describes the associations between the application and the specified associated resources. See also: AWS API Documentation **Request Syntax** response = client.describe_application_associations( MaxResults=123, NextToken='string', ApplicationId='string', AssociatedResourceTypes=[ 'WORKSPACE'|'BUNDLE'|'IMAGE', ] ) Parameters: * **MaxResults** (*integer*) -- The maximum number of associations to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **ApplicationId** (*string*) -- **[REQUIRED]** The identifier of the specified application. * **AssociatedResourceTypes** (*list*) -- **[REQUIRED]** The resource type of the associated resources. * *(string) --* Return type: dict Returns: **Response Syntax** { 'Associations': [ { 'ApplicationId': 'string', 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'WORKSPACE'|'BUNDLE'|'IMAGE', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' } }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Associations** *(list) --* List of associations and information about them. * *(dict) --* Describes the association between an application and an application resource. * **ApplicationId** *(string) --* The identifier of the application. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource type of the associated resource. * **Created** *(datetime) --* The time the association was created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the application resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. * **NextToken** *(string) --* If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / disassociate_workspace_application disassociate_workspace_application ********************************** WorkSpaces.Client.disassociate_workspace_application(**kwargs) Disassociates the specified application from a WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.disassociate_workspace_application( WorkspaceId='string', ApplicationId='string' ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **ApplicationId** (*string*) -- **[REQUIRED]** The identifier of the application. Return type: dict Returns: **Response Syntax** { 'Association': { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' }, 'WorkspaceId': 'string' } } **Response Structure** * *(dict) --* * **Association** *(dict) --* Information about the targeted association. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource types of the associated resource. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the WorkSpace resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceInUseException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / delete_ip_group delete_ip_group *************** WorkSpaces.Client.delete_ip_group(**kwargs) Deletes the specified IP access control group. You cannot delete an IP access control group that is associated with a directory. See also: AWS API Documentation **Request Syntax** response = client.delete_ip_group( GroupId='string' ) Parameters: **GroupId** (*string*) -- **[REQUIRED]** The identifier of the IP access control group. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / associate_connection_alias associate_connection_alias ************************** WorkSpaces.Client.associate_connection_alias(**kwargs) Associates the specified connection alias with the specified directory to enable cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Note: Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is "CREATED". See also: AWS API Documentation **Request Syntax** response = client.associate_connection_alias( AliasId='string', ResourceId='string' ) Parameters: * **AliasId** (*string*) -- **[REQUIRED]** The identifier of the connection alias. * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the directory to associate the connection alias with. Return type: dict Returns: **Response Syntax** { 'ConnectionIdentifier': 'string' } **Response Structure** * *(dict) --* * **ConnectionIdentifier** *(string) --* The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / create_workspace_bundle create_workspace_bundle *********************** WorkSpaces.Client.create_workspace_bundle(**kwargs) Creates the specified WorkSpace bundle. For more information about creating WorkSpace bundles, see Create a Custom WorkSpaces Image and Bundle. See also: AWS API Documentation **Request Syntax** response = client.create_workspace_bundle( BundleName='string', BundleDescription='string', ImageId='string', ComputeType={ 'Name': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN' }, UserStorage={ 'Capacity': 'string' }, RootStorage={ 'Capacity': 'string' }, Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **BundleName** (*string*) -- **[REQUIRED]** The name of the bundle. * **BundleDescription** (*string*) -- **[REQUIRED]** The description of the bundle. * **ImageId** (*string*) -- **[REQUIRED]** The identifier of the image that is used to create the bundle. * **ComputeType** (*dict*) -- **[REQUIRED]** Describes the compute type of the bundle. * **Name** *(string) --* The compute type. * **UserStorage** (*dict*) -- **[REQUIRED]** Describes the user volume for a WorkSpace bundle. * **Capacity** *(string) --* **[REQUIRED]** The size of the user volume. * **RootStorage** (*dict*) -- Describes the root volume for a WorkSpace bundle. * **Capacity** *(string) --* **[REQUIRED]** The size of the root volume. * **Tags** (*list*) -- The tags associated with the bundle. Note: To add tags at the same time when you're creating the bundle, you must create an IAM policy that grants your IAM user permissions to use "workspaces:CreateTags". * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'WorkspaceBundle': { 'BundleId': 'string', 'Name': 'string', 'Owner': 'string', 'Description': 'string', 'ImageId': 'string', 'RootStorage': { 'Capacity': 'string' }, 'UserStorage': { 'Capacity': 'string' }, 'ComputeType': { 'Name': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN' }, 'LastUpdatedTime': datetime(2015, 1, 1), 'CreationTime': datetime(2015, 1, 1), 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'BundleType': 'REGULAR'|'STANDBY' } } **Response Structure** * *(dict) --* * **WorkspaceBundle** *(dict) --* Describes a WorkSpace bundle. * **BundleId** *(string) --* The identifier of the bundle. * **Name** *(string) --* The name of the bundle. * **Owner** *(string) --* The owner of the bundle. This is the account identifier of the owner, or "AMAZON" if the bundle is provided by Amazon Web Services. * **Description** *(string) --* The description of the bundle. * **ImageId** *(string) --* The identifier of the image that was used to create the bundle. * **RootStorage** *(dict) --* The size of the root volume. * **Capacity** *(string) --* The size of the root volume. * **UserStorage** *(dict) --* The size of the user volume. * **Capacity** *(string) --* The size of the user volume. * **ComputeType** *(dict) --* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. * **Name** *(string) --* The compute type. * **LastUpdatedTime** *(datetime) --* The last time that the bundle was updated. * **CreationTime** *(datetime) --* The time when the bundle was created. * **State** *(string) --* The state of the WorkSpace bundle. * **BundleType** *(string) --* The type of WorkSpace bundle. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceUnavailableException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / modify_selfservice_permissions modify_selfservice_permissions ****************************** WorkSpaces.Client.modify_selfservice_permissions(**kwargs) Modifies the self-service WorkSpace management capabilities for your users. For more information, see Enable Self-Service WorkSpace Management Capabilities for Your Users. See also: AWS API Documentation **Request Syntax** response = client.modify_selfservice_permissions( ResourceId='string', SelfservicePermissions={ 'RestartWorkspace': 'ENABLED'|'DISABLED', 'IncreaseVolumeSize': 'ENABLED'|'DISABLED', 'ChangeComputeType': 'ENABLED'|'DISABLED', 'SwitchRunningMode': 'ENABLED'|'DISABLED', 'RebuildWorkspace': 'ENABLED'|'DISABLED' } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **SelfservicePermissions** (*dict*) -- **[REQUIRED]** The permissions to enable or disable self-service capabilities. * **RestartWorkspace** *(string) --* Specifies whether users can restart their WorkSpace. * **IncreaseVolumeSize** *(string) --* Specifies whether users can increase the volume size of the drives on their WorkSpace. * **ChangeComputeType** *(string) --* Specifies whether users can change the compute type (bundle) for their WorkSpace. * **SwitchRunningMode** *(string) --* Specifies whether users can switch the running mode of their WorkSpace. * **RebuildWorkspace** *(string) --* Specifies whether users can rebuild the operating system of a WorkSpace to its original state. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / update_workspace_bundle update_workspace_bundle *********************** WorkSpaces.Client.update_workspace_bundle(**kwargs) Updates a WorkSpace bundle with a new image. For more information about updating WorkSpace bundles, see Update a Custom WorkSpaces Bundle. Warning: Existing WorkSpaces aren't automatically updated when you update the bundle that they're based on. To update existing WorkSpaces that are based on a bundle that you've updated, you must either rebuild the WorkSpaces or delete and recreate them. See also: AWS API Documentation **Request Syntax** response = client.update_workspace_bundle( BundleId='string', ImageId='string' ) Parameters: * **BundleId** (*string*) -- The identifier of the bundle. * **ImageId** (*string*) -- The identifier of the image. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / copy_workspace_image copy_workspace_image ******************** WorkSpaces.Client.copy_workspace_image(**kwargs) Copies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web ServicesSupport. Warning: Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations. See also: AWS API Documentation **Request Syntax** response = client.copy_workspace_image( Name='string', Description='string', SourceImageId='string', SourceRegion='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **Name** (*string*) -- **[REQUIRED]** The name of the image. * **Description** (*string*) -- A description of the image. * **SourceImageId** (*string*) -- **[REQUIRED]** The identifier of the source image. * **SourceRegion** (*string*) -- **[REQUIRED]** The identifier of the source Region. * **Tags** (*list*) -- The tags for the image. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'ImageId': 'string' } **Response Structure** * *(dict) --* * **ImageId** *(string) --* The identifier of the image. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / describe_client_branding describe_client_branding ************************ WorkSpaces.Client.describe_client_branding(**kwargs) Describes the specified client branding. Client branding allows you to customize the log in page of various device types for your users. You can add your company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. Note: Only device types that have branding information configured will be shown in the response. See also: AWS API Documentation **Request Syntax** response = client.describe_client_branding( ResourceId='string' ) Parameters: **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier of the WorkSpace for which you want to view client branding information. Return type: dict Returns: **Response Syntax** { 'DeviceTypeWindows': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeOsx': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeAndroid': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeIos': { 'LogoUrl': 'string', 'Logo2xUrl': 'string', 'Logo3xUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeLinux': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeWeb': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } } } **Response Structure** * *(dict) --* * **DeviceTypeWindows** *(dict) --* The branding information for Windows devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeOsx** *(dict) --* The branding information for macOS devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeAndroid** *(dict) --* The branding information for Android devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeIos** *(dict) --* The branding information for iOS devices. * **LogoUrl** *(string) --* The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a ".png" file. * **Logo2xUrl** *(string) --* The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **Logo3xUrl** *(string) --* The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeLinux** *(dict) --* The branding information for Linux devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeWeb** *(dict) --* The branding information for Web access. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / can_paginate can_paginate ************ WorkSpaces.Client.can_paginate(operation_name) Check if an operation can be paginated. Parameters: **operation_name** (*string*) -- The operation name. This is the same name as the method name on the client. For example, if the method name is "create_foo", and you'd normally invoke the operation as "client.create_foo(**kwargs)", if the "create_foo" operation can be paginated, you can use the call "client.get_paginator("create_foo")". Returns: "True" if the operation can be paginated, "False" otherwise. WorkSpaces / Client / create_standby_workspaces create_standby_workspaces ************************* WorkSpaces.Client.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' }, ], 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE' }, ] ) Parameters: * **PrimaryRegion** (*string*) -- **[REQUIRED]** The Region of the primary WorkSpace. * **StandbyWorkspaces** (*list*) -- **[REQUIRED]** Information about the standby WorkSpace to be created. * *(dict) --* Describes a standby WorkSpace. * **PrimaryWorkspaceId** *(string) --* **[REQUIRED]** The identifier of the standby WorkSpace. * **VolumeEncryptionKey** *(string) --* The volume encryption key of the standby WorkSpace. * **DirectoryId** *(string) --* **[REQUIRED]** The identifier of the directory for the standby WorkSpace. * **Tags** *(list) --* The tags associated with the standby WorkSpace. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. Return type: dict Returns: **Response Syntax** { 'FailedStandbyRequests': [ { 'StandbyWorkspaceRequest': { 'PrimaryWorkspaceId': 'string', 'VolumeEncryptionKey': 'string', 'DirectoryId': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE' }, '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. * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **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" WorkSpaces / Client / update_connection_alias_permission update_connection_alias_permission ********************************** WorkSpaces.Client.update_connection_alias_permission(**kwargs) Shares or unshares a connection alias with one account by specifying whether that account has permission to associate the connection alias with a directory. If the association permission is granted, the connection alias is shared with that account. If the association permission is revoked, the connection alias is unshared with the account. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Note: * Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is "CREATED". * To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories. See also: AWS API Documentation **Request Syntax** response = client.update_connection_alias_permission( AliasId='string', ConnectionAliasPermission={ 'SharedAccountId': 'string', 'AllowAssociation': True|False } ) Parameters: * **AliasId** (*string*) -- **[REQUIRED]** The identifier of the connection alias that you want to update permissions for. * **ConnectionAliasPermission** (*dict*) -- **[REQUIRED]** Indicates whether to share or unshare the connection alias with the specified Amazon Web Services account. * **SharedAccountId** *(string) --* **[REQUIRED]** The identifier of the Amazon Web Services account that the connection alias is shared with. * **AllowAssociation** *(boolean) --* **[REQUIRED]** Indicates whether the specified Amazon Web Services account is allowed to associate the connection alias with a directory. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / disassociate_connection_alias disassociate_connection_alias ***************************** WorkSpaces.Client.disassociate_connection_alias(**kwargs) Disassociates a connection alias from a directory. Disassociating a connection alias disables cross-Region redirection between two directories in different Regions. For more information, see Cross- Region Redirection for Amazon WorkSpaces. Note: Before performing this operation, call DescribeConnectionAliases to make sure that the current state of the connection alias is "CREATED". See also: AWS API Documentation **Request Syntax** response = client.disassociate_connection_alias( AliasId='string' ) Parameters: **AliasId** (*string*) -- **[REQUIRED]** The identifier of the connection alias to disassociate. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / stop_workspaces stop_workspaces *************** WorkSpaces.Client.stop_workspaces(**kwargs) Stops the specified WorkSpaces. You cannot stop a WorkSpace unless it has a running mode of "AutoStop" or "Manual" and a state of "AVAILABLE", "IMPAIRED", "UNHEALTHY", or "ERROR". See also: AWS API Documentation **Request Syntax** response = client.stop_workspaces( StopWorkspaceRequests=[ { 'WorkspaceId': 'string' }, ] ) Parameters: **StopWorkspaceRequests** (*list*) -- **[REQUIRED]** The WorkSpaces to stop. You can specify up to 25 WorkSpaces. * *(dict) --* Describes the information used to stop a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceId': 'string', 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpaces that could not be stopped. * *(dict) --* Describes a WorkSpace that could not be rebooted. ( RebootWorkspaces), rebuilt ( RebuildWorkspaces), restored ( RestoreWorkspace), terminated ( TerminateWorkspaces), started ( StartWorkspaces), or stopped ( StopWorkspaces). * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be rebooted. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be rebooted. WorkSpaces / Client / create_workspaces create_workspaces ***************** WorkSpaces.Client.create_workspaces(**kwargs) Creates one or more WorkSpaces. This operation is asynchronous and returns before the WorkSpaces are created. Note: * The "MANUAL" running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. * You don't need to specify the "PCOIP" protocol for Linux bundles because "DCV" (formerly WSP) is the default protocol for those bundles. * User-decoupled WorkSpaces are only supported by Amazon WorkSpaces Core. * Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? See also: AWS API Documentation **Request Syntax** response = client.create_workspaces( Workspaces=[ { 'DirectoryId': 'string', 'UserName': 'string', 'BundleId': 'string', 'VolumeEncryptionKey': 'string', 'UserVolumeEncryptionEnabled': True|False, 'RootVolumeEncryptionEnabled': True|False, 'WorkspaceProperties': { 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'WorkspaceName': 'string' }, ] ) Parameters: **Workspaces** (*list*) -- **[REQUIRED]** The WorkSpaces to create. You can specify up to 25 WorkSpaces. * *(dict) --* Describes the information used to create a WorkSpace. * **DirectoryId** *(string) --* **[REQUIRED]** The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories. * **UserName** *(string) --* **[REQUIRED]** The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace. The username is not case-sensitive, but we recommend matching the case in the Directory Service directory to avoid potential incompatibilities. The reserved keyword, "[UNDEFINED]", is used when creating user-decoupled WorkSpaces. * **BundleId** *(string) --* **[REQUIRED]** The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles. * **VolumeEncryptionKey** *(string) --* The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys. * **UserVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the user volume is encrypted. * **RootVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the root volume is encrypted. * **WorkspaceProperties** *(dict) --* The WorkSpace properties. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow- listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* **[REQUIRED]** Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **Tags** *(list) --* The tags for the WorkSpace. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. * **WorkspaceName** *(string) --* The name of the user-decoupled WorkSpace. Note: "WorkspaceName" is required if "UserName" is "[UNDEFINED]" for user-decoupled WorkSpaces. "WorkspaceName" is not applicable if "UserName" is specified for user-assigned WorkSpaces. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceRequest': { 'DirectoryId': 'string', 'UserName': 'string', 'BundleId': 'string', 'VolumeEncryptionKey': 'string', 'UserVolumeEncryptionEnabled': True|False, 'RootVolumeEncryptionEnabled': True|False, 'WorkspaceProperties': { 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'WorkspaceName': 'string' }, 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ], 'PendingRequests': [ { 'WorkspaceId': 'string', 'DirectoryId': 'string', 'UserName': 'string', 'IpAddress': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'BundleId': 'string', 'SubnetId': 'string', 'ErrorMessage': 'string', 'ErrorCode': 'string', 'ComputerName': 'string', 'VolumeEncryptionKey': 'string', 'UserVolumeEncryptionEnabled': True|False, 'RootVolumeEncryptionEnabled': True|False, 'WorkspaceName': 'string', 'WorkspaceProperties': { 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, 'ModificationStates': [ { 'Resource': 'ROOT_VOLUME'|'USER_VOLUME'|'COMPUTE_TYPE', 'State': 'UPDATE_INITIATED'|'UPDATE_IN_PROGRESS' }, ], 'RelatedWorkspaces': [ { 'WorkspaceId': 'string', 'Region': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'Type': 'PRIMARY'|'STANDBY' }, ], 'DataReplicationSettings': { 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, 'StandbyWorkspacesProperties': [ { 'StandbyWorkspaceId': 'string', 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, ] }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpaces that could not be created. * *(dict) --* Describes a WorkSpace that cannot be created. * **WorkspaceRequest** *(dict) --* Information about the WorkSpace. * **DirectoryId** *(string) --* The identifier of the Directory Service directory for the WorkSpace. You can use DescribeWorkspaceDirectories to list the available directories. * **UserName** *(string) --* The user name of the user for the WorkSpace. This user name must exist in the Directory Service directory for the WorkSpace. The username is not case-sensitive, but we recommend matching the case in the Directory Service directory to avoid potential incompatibilities. The reserved keyword, "[UNDEFINED]", is used when creating user-decoupled WorkSpaces. * **BundleId** *(string) --* The identifier of the bundle for the WorkSpace. You can use DescribeWorkspaceBundles to list the available bundles. * **VolumeEncryptionKey** *(string) --* The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys. * **UserVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the user volume is encrypted. * **RootVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the root volume is encrypted. * **WorkspaceProperties** *(dict) --* The WorkSpace properties. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **Tags** *(list) --* The tags for the WorkSpace. * *(dict) --* Describes a tag. * **Key** *(string) --* The key of the tag. * **Value** *(string) --* The value of the tag. * **WorkspaceName** *(string) --* The name of the user-decoupled WorkSpace. Note: "WorkspaceName" is required if "UserName" is "[UNDEFINED]" for user-decoupled WorkSpaces. "WorkspaceName" is not applicable if "UserName" is specified for user-assigned WorkSpaces. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be created. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be created. * **PendingRequests** *(list) --* Information about the WorkSpaces that were 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. * *(dict) --* Describes a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **DirectoryId** *(string) --* The identifier of the Directory Service directory for the WorkSpace. * **UserName** *(string) --* The user for the WorkSpace. * **IpAddress** *(string) --* The IP address of the WorkSpace. * **State** *(string) --* The operational state of the WorkSpace. * "PENDING" – The WorkSpace is in a waiting state (for example, the WorkSpace is being created). * "AVAILABLE" – The WorkSpace is running and has passed the health checks. * "IMPAIRED" – Refer to "UNHEALTHY" state. * "UNHEALTHY" – The WorkSpace is not responding to health checks. * "REBOOTING" – The WorkSpace is being rebooted (restarted). * "STARTING" – The WorkSpace is starting up and health checks are being run. * "REBUILDING" – The WorkSpace is being rebuilt. * "RESTORING" – The WorkSpace is being restored. * "MAINTENANCE" – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services. * "ADMIN_MAINTENANCE" – The WorkSpace is undergoing maintenance by the WorkSpaces administrator. * "TERMINATING" – The WorkSpace is being deleted. * "TERMINATED" – The WorkSpace has been deleted. * "SUSPENDED" – The WorkSpace has been suspended for image creation. * "UPDATING" – The WorkSpace is undergoing an update. * "STOPPING" – The WorkSpace is being stopped. * "STOPPED" – The WorkSpace has been stopped. * "ERROR" – The WorkSpace is an error state (for example, an error occurred during startup). Note: After a WorkSpace is terminated, the "TERMINATED" state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. * **BundleId** *(string) --* The identifier of the bundle used to create the WorkSpace. * **SubnetId** *(string) --* The identifier of the subnet for the WorkSpace. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be created. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be created. * **ComputerName** *(string) --* The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace. * **VolumeEncryptionKey** *(string) --* The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys. * **UserVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the user volume is encrypted. * **RootVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the root volume is encrypted. * **WorkspaceName** *(string) --* The name of the user-decoupled WorkSpace. * **WorkspaceProperties** *(dict) --* The properties of the WorkSpace. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **ModificationStates** *(list) --* The modification states of the WorkSpace. * *(dict) --* Describes a WorkSpace modification. * **Resource** *(string) --* The resource. * **State** *(string) --* The modification state. * **RelatedWorkspaces** *(list) --* The standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * *(dict) --* Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * **WorkspaceId** *(string) --* The identifier of the related WorkSpace. * **Region** *(string) --* The Region of the related WorkSpace. * **State** *(string) --* Indicates the state of the WorkSpace. * **Type** *(string) --* Indicates the type of WorkSpace. * **DataReplicationSettings** *(dict) --* Indicates the settings of the data replication. * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. * **StandbyWorkspacesProperties** *(list) --* The properties of the standby WorkSpace * *(dict) --* Describes the properties of the related standby WorkSpaces. * **StandbyWorkspaceId** *(string) --* The identifier of the standby WorkSpace * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / update_rules_of_ip_group update_rules_of_ip_group ************************ WorkSpaces.Client.update_rules_of_ip_group(**kwargs) Replaces the current rules of the specified IP access control group with the specified rules. See also: AWS API Documentation **Request Syntax** response = client.update_rules_of_ip_group( GroupId='string', UserRules=[ { 'ipRule': 'string', 'ruleDesc': 'string' }, ] ) Parameters: * **GroupId** (*string*) -- **[REQUIRED]** The identifier of the group. * **UserRules** (*list*) -- **[REQUIRED]** One or more rules. * *(dict) --* Describes a rule for an IP access control group. * **ipRule** *(string) --* The IP address range, in CIDR notation. * **ruleDesc** *(string) --* The description. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / create_workspaces_pool create_workspaces_pool ********************** WorkSpaces.Client.create_workspaces_pool(**kwargs) Creates a pool of WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.create_workspaces_pool( PoolName='string', Description='string', BundleId='string', DirectoryId='string', Capacity={ 'DesiredUserSessions': 123 }, Tags=[ { 'Key': 'string', 'Value': 'string' }, ], ApplicationSettings={ 'Status': 'DISABLED'|'ENABLED', 'SettingsGroup': 'string' }, TimeoutSettings={ 'DisconnectTimeoutInSeconds': 123, 'IdleDisconnectTimeoutInSeconds': 123, 'MaxUserDurationInSeconds': 123 }, RunningMode='AUTO_STOP'|'ALWAYS_ON' ) Parameters: * **PoolName** (*string*) -- **[REQUIRED]** The name of the pool. * **Description** (*string*) -- **[REQUIRED]** The pool description. * **BundleId** (*string*) -- **[REQUIRED]** The identifier of the bundle for the pool. * **DirectoryId** (*string*) -- **[REQUIRED]** The identifier of the directory for the pool. * **Capacity** (*dict*) -- **[REQUIRED]** The user capacity of the pool. * **DesiredUserSessions** *(integer) --* **[REQUIRED]** The desired number of user sessions for the WorkSpaces in the pool. * **Tags** (*list*) -- The tags for the pool. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. * **ApplicationSettings** (*dict*) -- Indicates the application settings of the pool. * **Status** *(string) --* **[REQUIRED]** Enables or disables persistent application settings for users during their pool sessions. * **SettingsGroup** *(string) --* The path prefix for the S3 bucket where users’ persistent application settings are stored. You can allow the same persistent application settings to be used across multiple pools by specifying the same settings group for each pool. * **TimeoutSettings** (*dict*) -- Indicates the timeout settings of the pool. * **DisconnectTimeoutInSeconds** *(integer) --* Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance. * **IdleDisconnectTimeoutInSeconds** *(integer) --* The amount of time in seconds a connection will stay active while idle. * **MaxUserDurationInSeconds** *(integer) --* Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. * **RunningMode** (*string*) -- The running mode for the pool. Return type: dict Returns: **Response Syntax** { 'WorkspacesPool': { 'PoolId': 'string', 'PoolArn': 'string', 'CapacityStatus': { 'AvailableUserSessions': 123, 'DesiredUserSessions': 123, 'ActualUserSessions': 123, 'ActiveUserSessions': 123 }, 'PoolName': 'string', 'Description': 'string', 'State': 'CREATING'|'DELETING'|'RUNNING'|'STARTING'|'STOPPED'|'STOPPING'|'UPDATING', 'CreatedAt': datetime(2015, 1, 1), 'BundleId': 'string', 'DirectoryId': 'string', 'Errors': [ { 'ErrorCode': 'IAM_SERVICE_ROLE_IS_MISSING'|'IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION'|'NETWORK_INTERFACE_LIMIT_EXCEEDED'|'INTERNAL_SERVICE_ERROR'|'MACHINE_ROLE_IS_MISSING'|'STS_DISABLED_IN_REGION'|'SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION'|'SUBNET_NOT_FOUND'|'IMAGE_NOT_FOUND'|'INVALID_SUBNET_CONFIGURATION'|'SECURITY_GROUPS_NOT_FOUND'|'IGW_NOT_ATTACHED'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION'|'WORKSPACES_POOL_STOPPED'|'WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE'|'DOMAIN_JOIN_ERROR_FILE_NOT_FOUND'|'DOMAIN_JOIN_ERROR_ACCESS_DENIED'|'DOMAIN_JOIN_ERROR_LOGON_FAILURE'|'DOMAIN_JOIN_ERROR_INVALID_PARAMETER'|'DOMAIN_JOIN_ERROR_MORE_DATA'|'DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN'|'DOMAIN_JOIN_ERROR_NOT_SUPPORTED'|'DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME'|'DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED'|'DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED'|'DOMAIN_JOIN_NERR_PASSWORD_EXPIRED'|'DOMAIN_JOIN_INTERNAL_SERVICE_ERROR'|'DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING'|'DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE'|'DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID'|'DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_INVALID'|'BUNDLE_NOT_FOUND'|'DIRECTORY_NOT_FOUND'|'INSUFFICIENT_PERMISSIONS_ERROR'|'DEFAULT_OU_IS_MISSING', 'ErrorMessage': 'string' }, ], 'ApplicationSettings': { 'Status': 'DISABLED'|'ENABLED', 'SettingsGroup': 'string', 'S3BucketName': 'string' }, 'TimeoutSettings': { 'DisconnectTimeoutInSeconds': 123, 'IdleDisconnectTimeoutInSeconds': 123, 'MaxUserDurationInSeconds': 123 }, 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON' } } **Response Structure** * *(dict) --* * **WorkspacesPool** *(dict) --* Indicates the pool to create. * **PoolId** *(string) --* The identifier of a pool. * **PoolArn** *(string) --* The Amazon Resource Name (ARN) for the pool. * **CapacityStatus** *(dict) --* The capacity status for the pool * **AvailableUserSessions** *(integer) --* The number of user sessions currently available for streaming from your pool. AvailableUserSessions = ActualUserSessions - ActiveUserSessions * **DesiredUserSessions** *(integer) --* The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your pool can support in a steady state. * **ActualUserSessions** *(integer) --* The total number of user sessions that are available for streaming or are currently streaming in your pool. ActualUserSessions = AvailableUserSessions + ActiveUserSessions * **ActiveUserSessions** *(integer) --* The number of user sessions currently being used for your pool. * **PoolName** *(string) --* The name of the pool. * **Description** *(string) --* The description of the pool. * **State** *(string) --* The current state of the pool. * **CreatedAt** *(datetime) --* The time the pool was created. * **BundleId** *(string) --* The identifier of the bundle used by the pool. * **DirectoryId** *(string) --* The identifier of the directory used by the pool. * **Errors** *(list) --* The pool errors. * *(dict) --* Describes a pool error. * **ErrorCode** *(string) --* The error code. * **ErrorMessage** *(string) --* The error message. * **ApplicationSettings** *(dict) --* The persistent application settings for users of the pool. * **Status** *(string) --* Specifies whether persistent application settings are enabled for users during their pool sessions. * **SettingsGroup** *(string) --* The path prefix for the S3 bucket where users’ persistent application settings are stored. * **S3BucketName** *(string) --* The S3 bucket where users’ persistent application settings are stored. When persistent application settings are enabled for the first time for an account in an Amazon Web Services Region, an S3 bucket is created. The bucket is unique to the Amazon Web Services account and the Region. * **TimeoutSettings** *(dict) --* The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance. * **DisconnectTimeoutInSeconds** *(integer) --* Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance. * **IdleDisconnectTimeoutInSeconds** *(integer) --* The amount of time in seconds a connection will stay active while idle. * **MaxUserDurationInSeconds** *(integer) --* Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. * **RunningMode** *(string) --* The running mode of the pool. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / deregister_workspace_directory deregister_workspace_directory ****************************** WorkSpaces.Client.deregister_workspace_directory(**kwargs) Deregisters the specified directory. This operation is asynchronous and returns before the WorkSpace directory is deregistered. If any WorkSpaces are registered to this directory, you must remove them before you can deregister the directory. Note: Simple AD and AD Connector are made available to you free of charge to use with WorkSpaces. If there are no WorkSpaces being used with your Simple AD or AD Connector directory for 30 consecutive days, this directory will be automatically deregistered for use with Amazon WorkSpaces, and you will be charged for this directory as per the Directory Service pricing terms.To delete empty directories, see Delete the Directory for Your WorkSpaces. If you delete your Simple AD or AD Connector directory, you can always create a new one when you want to start using WorkSpaces again. See also: AWS API Documentation **Request Syntax** response = client.deregister_workspace_directory( DirectoryId='string' ) Parameters: **DirectoryId** (*string*) -- **[REQUIRED]** The identifier of the directory. If any WorkSpaces are registered to this directory, you must remove them before you deregister the directory, or you will receive an OperationNotSupportedException error. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" WorkSpaces / Client / migrate_workspace migrate_workspace ***************** WorkSpaces.Client.migrate_workspace(**kwargs) Migrates a WorkSpace from one operating system or bundle type to another, while retaining the data on the user volume. The migration process recreates the WorkSpace by using a new root volume from the target bundle image and the user volume from the last available snapshot of the original WorkSpace. During migration, the original "D:\Users\%USERNAME%" user profile folder is renamed to "D:\Users\%USERNAME%MMddyyTHHmmss%.NotMigrated". A new "D:\Users\%USERNAME%\" folder is generated by the new OS. Certain files in the old user profile are moved to the new user profile. For available migration scenarios, details about what happens during migration, and best practices, see Migrate a WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.migrate_workspace( SourceWorkspaceId='string', BundleId='string' ) Parameters: * **SourceWorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace to migrate from. * **BundleId** (*string*) -- **[REQUIRED]** The identifier of the target bundle type to migrate the WorkSpace to. Return type: dict Returns: **Response Syntax** { 'SourceWorkspaceId': 'string', 'TargetWorkspaceId': 'string' } **Response Structure** * *(dict) --* * **SourceWorkspaceId** *(string) --* The original identifier of the WorkSpace that is being migrated. * **TargetWorkspaceId** *(string) --* The new identifier of the WorkSpace that is being migrated. If the migration does not succeed, the target WorkSpace ID will not be used, and the WorkSpace will still have the original WorkSpace ID. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" WorkSpaces / Client / modify_saml_properties modify_saml_properties ********************** WorkSpaces.Client.modify_saml_properties(**kwargs) Modifies multiple properties related to SAML 2.0 authentication, including the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider. See also: AWS API Documentation **Request Syntax** response = client.modify_saml_properties( ResourceId='string', SamlProperties={ 'Status': 'DISABLED'|'ENABLED'|'ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK', 'UserAccessUrl': 'string', 'RelayStateParameterName': 'string' }, PropertiesToDelete=[ 'SAML_PROPERTIES_USER_ACCESS_URL'|'SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME', ] ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier for which you want to configure SAML properties. * **SamlProperties** (*dict*) -- The properties for configuring SAML 2.0 authentication. * **Status** *(string) --* Indicates the status of SAML 2.0 authentication. These statuses include the following. * If the setting is "DISABLED", end users will be directed to login with their directory credentials. * If the setting is "ENABLED", end users will be directed to login via the user access URL. Users attempting to connect to WorkSpaces from a client application that does not support SAML 2.0 authentication will not be able to connect. * If the setting is "ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK", end users will be directed to login via the user access URL on supported client applications, but will not prevent clients that do not support SAML 2.0 authentication from connecting as if SAML 2.0 authentication was disabled. * **UserAccessUrl** *(string) --* The SAML 2.0 identity provider (IdP) user access URL is the URL a user would navigate to in their web browser in order to federate from the IdP and directly access the application, without any SAML 2.0 service provider (SP) bindings. * **RelayStateParameterName** *(string) --* The relay state parameter name supported by the SAML 2.0 identity provider (IdP). When the end user is redirected to the user access URL from the WorkSpaces client application, this relay state parameter name is appended as a query parameter to the URL along with the relay state endpoint to return the user to the client application session. To use SAML 2.0 authentication with WorkSpaces, the IdP must support IdP-initiated deep linking for the relay state URL. Consult your IdP documentation for more information. * **PropertiesToDelete** (*list*) -- The SAML properties to delete as part of your request. Specify one of the following options: * "SAML_PROPERTIES_USER_ACCESS_URL" to delete the user access URL. * "SAML_PROPERTIES_RELAY_STATE_PARAMETER_NAME" to delete the relay state parameter name. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / create_updated_workspace_image create_updated_workspace_image ****************************** WorkSpaces.Client.create_updated_workspace_image(**kwargs) Creates a new updated WorkSpace image based on the specified source image. The new updated WorkSpace image has the latest drivers and other updates required by the Amazon WorkSpaces components. To determine which WorkSpace images need to be updated with the latest Amazon WorkSpaces requirements, use DescribeWorkspaceImages. Note: * Only Windows 10, Windows Server 2016, and Windows Server 2019 WorkSpace images can be programmatically updated at this time. * Microsoft Windows updates and other application updates are not included in the update process. * The source WorkSpace image is not deleted. You can delete the source image after you've verified your new updated image and created a new bundle. See also: AWS API Documentation **Request Syntax** response = client.create_updated_workspace_image( Name='string', Description='string', SourceImageId='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **Name** (*string*) -- **[REQUIRED]** The name of the new updated WorkSpace image. * **Description** (*string*) -- **[REQUIRED]** A description of whether updates for the WorkSpace image are available. * **SourceImageId** (*string*) -- **[REQUIRED]** The identifier of the source WorkSpace image. * **Tags** (*list*) -- The tags that you want to add to the new updated WorkSpace image. Note: To add tags at the same time when you're creating the updated image, you must create an IAM policy that grants your IAM user permissions to use "workspaces:CreateTags". * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'ImageId': 'string' } **Response Structure** * *(dict) --* * **ImageId** *(string) --* The identifier of the new updated WorkSpace image. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / describe_applications describe_applications ********************* WorkSpaces.Client.describe_applications(**kwargs) Describes the specified applications by filtering based on their compute types, license availability, operating systems, and owners. See also: AWS API Documentation **Request Syntax** response = client.describe_applications( ApplicationIds=[ 'string', ], ComputeTypeNames=[ 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', ], LicenseType='LICENSED'|'UNLICENSED', OperatingSystemNames=[ 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', ], Owner='string', MaxResults=123, NextToken='string' ) Parameters: * **ApplicationIds** (*list*) -- The identifiers of one or more applications. * *(string) --* * **ComputeTypeNames** (*list*) -- The compute types supported by the applications. * *(string) --* * **LicenseType** (*string*) -- The license availability for the applications. * **OperatingSystemNames** (*list*) -- The operating systems supported by the applications. * *(string) --* * **Owner** (*string*) -- The owner of the applications. * **MaxResults** (*integer*) -- The maximum number of applications to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'Applications': [ { 'ApplicationId': 'string', 'Created': datetime(2015, 1, 1), 'Description': 'string', 'LicenseType': 'LICENSED'|'UNLICENSED', 'Name': 'string', 'Owner': 'string', 'State': 'PENDING'|'ERROR'|'AVAILABLE'|'UNINSTALL_ONLY', 'SupportedComputeTypeNames': [ 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', ], 'SupportedOperatingSystemNames': [ 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Applications** *(list) --* List of information about the specified applications. * *(dict) --* Describes the WorkSpace application. * **ApplicationId** *(string) --* The identifier of the application. * **Created** *(datetime) --* The time the application is created. * **Description** *(string) --* The description of the WorkSpace application. * **LicenseType** *(string) --* The license availability for the applications. * **Name** *(string) --* The name of the WorkSpace application. * **Owner** *(string) --* The owner of the WorkSpace application. * **State** *(string) --* The status of WorkSpace application. * **SupportedComputeTypeNames** *(list) --* The supported compute types of the WorkSpace application. * *(string) --* * **SupportedOperatingSystemNames** *(list) --* The supported operating systems of the WorkSpace application. * *(string) --* * **NextToken** *(string) --* If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / modify_workspace_creation_properties modify_workspace_creation_properties ************************************ WorkSpaces.Client.modify_workspace_creation_properties(**kwargs) Modify the default properties used to create WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.modify_workspace_creation_properties( ResourceId='string', WorkspaceCreationProperties={ 'EnableInternetAccess': True|False, 'DefaultOu': 'string', 'CustomSecurityGroupId': 'string', 'UserEnabledAsLocalAdministrator': True|False, 'EnableMaintenanceMode': True|False, 'InstanceIamRoleArn': 'string' } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **WorkspaceCreationProperties** (*dict*) -- **[REQUIRED]** The default properties for creating WorkSpaces. * **EnableInternetAccess** *(boolean) --* Indicates whether internet access is enabled for your WorkSpaces. * **DefaultOu** *(string) --* The default organizational unit (OU) for your WorkSpaces directories. This string must be the full Lightweight Directory Access Protocol (LDAP) distinguished name for the target domain and OU. It must be in the form ""OU=value,DC=value,DC=value"", where *value* is any string of characters, and the number of domain components (DCs) is two or more. For example, "OU=WorkSpaces_machines,DC=machines,DC=example,DC=com". Warning: * To avoid errors, certain characters in the distinguished name must be escaped. For more information, see Distinguished Names in the Microsoft documentation. * The API doesn't validate whether the OU exists. * **CustomSecurityGroupId** *(string) --* The identifier of your custom security group. * **UserEnabledAsLocalAdministrator** *(boolean) --* Indicates whether users are local administrators of their WorkSpaces. * **EnableMaintenanceMode** *(boolean) --* Indicates whether maintenance mode is enabled for your WorkSpaces. For more information, see WorkSpace Maintenance. * **InstanceIamRoleArn** *(string) --* Indicates the IAM role ARN of the instance. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / modify_endpoint_encryption_mode modify_endpoint_encryption_mode ******************************* WorkSpaces.Client.modify_endpoint_encryption_mode(**kwargs) Modifies the endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode. See also: AWS API Documentation **Request Syntax** response = client.modify_endpoint_encryption_mode( DirectoryId='string', EndpointEncryptionMode='STANDARD_TLS'|'FIPS_VALIDATED' ) Parameters: * **DirectoryId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **EndpointEncryptionMode** (*string*) -- **[REQUIRED]** The encryption mode used for endpoint connections when streaming to WorkSpaces Personal or WorkSpace Pools. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / describe_connect_client_add_ins describe_connect_client_add_ins ******************************* WorkSpaces.Client.describe_connect_client_add_ins(**kwargs) Retrieves a list of Amazon Connect client add-ins that have been created. See also: AWS API Documentation **Request Syntax** response = client.describe_connect_client_add_ins( ResourceId='string', NextToken='string', MaxResults=123 ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier for which the client add-in is configured. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **MaxResults** (*integer*) -- The maximum number of items to return. Return type: dict Returns: **Response Syntax** { 'AddIns': [ { 'AddInId': 'string', 'ResourceId': 'string', 'Name': 'string', 'URL': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AddIns** *(list) --* Information about client add-ins. * *(dict) --* Describes an Amazon Connect client add-in. * **AddInId** *(string) --* The client add-in identifier. * **ResourceId** *(string) --* The directory identifier for which the client add-in is configured. * **Name** *(string) --* The name of the client add in. * **URL** *(string) --* The endpoint URL of the client add-in. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / disassociate_ip_groups disassociate_ip_groups ********************** WorkSpaces.Client.disassociate_ip_groups(**kwargs) Disassociates the specified IP access control group from the specified directory. See also: AWS API Documentation **Request Syntax** response = client.disassociate_ip_groups( DirectoryId='string', GroupIds=[ 'string', ] ) Parameters: * **DirectoryId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **GroupIds** (*list*) -- **[REQUIRED]** The identifiers of one or more IP access control groups. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / get_account_link get_account_link **************** WorkSpaces.Client.get_account_link(**kwargs) Retrieves account link information. See also: AWS API Documentation **Request Syntax** response = client.get_account_link( LinkId='string', LinkedAccountId='string' ) Parameters: * **LinkId** (*string*) -- The identifier of the account to link. * **LinkedAccountId** (*string*) -- The identifier of the account link Return type: dict Returns: **Response Syntax** { 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } } **Response Structure** * *(dict) --* * **AccountLink** *(dict) --* The account link of the account link to retrieve. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / describe_workspaces_pool_sessions describe_workspaces_pool_sessions ********************************* WorkSpaces.Client.describe_workspaces_pool_sessions(**kwargs) Retrieves a list that describes the streaming sessions for a specified pool. See also: AWS API Documentation **Request Syntax** response = client.describe_workspaces_pool_sessions( PoolId='string', UserId='string', Limit=123, NextToken='string' ) Parameters: * **PoolId** (*string*) -- **[REQUIRED]** The identifier of the pool. * **UserId** (*string*) -- The identifier of the user. * **Limit** (*integer*) -- The maximum size of each page of results. The default value is 20 and the maximum value is 50. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'Sessions': [ { 'AuthenticationType': 'SAML', 'ConnectionState': 'CONNECTED'|'NOT_CONNECTED', 'SessionId': 'string', 'InstanceId': 'string', 'PoolId': 'string', 'ExpirationTime': datetime(2015, 1, 1), 'NetworkAccessConfiguration': { 'EniPrivateIpAddress': 'string', 'EniId': 'string' }, 'StartTime': datetime(2015, 1, 1), 'UserId': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Sessions** *(list) --* Describes the pool sessions. * *(dict) --* Describes a pool session. * **AuthenticationType** *(string) --* The authentication method. The user is authenticated using a WorkSpaces Pools URL (API) or SAML 2.0 federation (SAML). * **ConnectionState** *(string) --* Specifies whether a user is connected to the pool session. * **SessionId** *(string) --* The identifier of the session. * **InstanceId** *(string) --* The identifier for the instance hosting the session. * **PoolId** *(string) --* The identifier of the pool. * **ExpirationTime** *(datetime) --* The time that the pool session ended. * **NetworkAccessConfiguration** *(dict) --* Describes the network details of the pool. * **EniPrivateIpAddress** *(string) --* The private IP address of the elastic network interface that is attached to instances in your VPC. * **EniId** *(string) --* The resource identifier of the elastic network interface that is attached to instances in your VPC. All network interfaces have the eni-xxxxxxxx resource identifier. * **StartTime** *(datetime) --* The time that the pool sission started. * **UserId** *(string) --* The identifier of the user. * **NextToken** *(string) --* If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_tags describe_tags ************* WorkSpaces.Client.describe_tags(**kwargs) Describes the specified tags for the specified WorkSpaces resource. See also: AWS API Documentation **Request Syntax** response = client.describe_tags( ResourceId='string' ) Parameters: **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases. Return type: dict Returns: **Response Syntax** { 'TagList': [ { 'Key': 'string', 'Value': 'string' }, ] } **Response Structure** * *(dict) --* * **TagList** *(list) --* The tags. * *(dict) --* Describes a tag. * **Key** *(string) --* The key of the tag. * **Value** *(string) --* The value of the tag. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / describe_image_associations describe_image_associations *************************** WorkSpaces.Client.describe_image_associations(**kwargs) Describes the associations between the applications and the specified image. See also: AWS API Documentation **Request Syntax** response = client.describe_image_associations( ImageId='string', AssociatedResourceTypes=[ 'APPLICATION', ] ) Parameters: * **ImageId** (*string*) -- **[REQUIRED]** The identifier of the image. * **AssociatedResourceTypes** (*list*) -- **[REQUIRED]** The resource types of the associated resource. * *(string) --* Return type: dict Returns: **Response Syntax** { 'Associations': [ { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'ImageId': 'string', 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' } }, ] } **Response Structure** * *(dict) --* * **Associations** *(list) --* List of information about the specified associations. * *(dict) --* Describes the association between an application and an image resource. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource type of the associated resources. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **ImageId** *(string) --* The identifier of the image. * **State** *(string) --* The status of the image resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / delete_connection_alias delete_connection_alias *********************** WorkSpaces.Client.delete_connection_alias(**kwargs) Deletes the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. Warning: **If you will no longer be using a fully qualified domain name (FQDN) as the registration code for your WorkSpaces users, you must take certain precautions to prevent potential security issues.** For more information, see Security Considerations if You Stop Using Cross-Region Redirection. Note: To delete a connection alias that has been shared, the shared account must first disassociate the connection alias from any directories it has been associated with. Then you must unshare the connection alias from the account it has been shared with. You can delete a connection alias only after it is no longer shared with any accounts or associated with any directories. See also: AWS API Documentation **Request Syntax** response = client.delete_connection_alias( AliasId='string' ) Parameters: **AliasId** (*string*) -- **[REQUIRED]** The identifier of the connection alias to delete. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / authorize_ip_rules authorize_ip_rules ****************** WorkSpaces.Client.authorize_ip_rules(**kwargs) Adds one or more rules to the specified IP access control group. This action gives users permission to access their WorkSpaces from the CIDR address ranges specified in the rules. See also: AWS API Documentation **Request Syntax** response = client.authorize_ip_rules( GroupId='string', UserRules=[ { 'ipRule': 'string', 'ruleDesc': 'string' }, ] ) Parameters: * **GroupId** (*string*) -- **[REQUIRED]** The identifier of the group. * **UserRules** (*list*) -- **[REQUIRED]** The rules to add to the group. * *(dict) --* Describes a rule for an IP access control group. * **ipRule** *(string) --* The IP address range, in CIDR notation. * **ruleDesc** *(string) --* The description. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / get_waiter get_waiter ********** WorkSpaces.Client.get_waiter(waiter_name) Returns an object that can wait for some condition. Parameters: **waiter_name** (*str*) -- The name of the waiter to get. See the waiters section of the service docs for a list of available waiters. Returns: The specified waiter object. Return type: "botocore.waiter.Waiter" WorkSpaces / Client / terminate_workspaces_pool terminate_workspaces_pool ************************* WorkSpaces.Client.terminate_workspaces_pool(**kwargs) Terminates the specified pool. See also: AWS API Documentation **Request Syntax** response = client.terminate_workspaces_pool( PoolId='string' ) Parameters: **PoolId** (*string*) -- **[REQUIRED]** The identifier of the pool. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_account_modifications describe_account_modifications ****************************** WorkSpaces.Client.describe_account_modifications(**kwargs) Retrieves a list that describes modifications to the configuration of Bring Your Own License (BYOL) for the specified account. See also: AWS API Documentation **Request Syntax** response = client.describe_account_modifications( NextToken='string' ) Parameters: **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'AccountModifications': [ { 'ModificationState': 'PENDING'|'COMPLETED'|'FAILED', 'DedicatedTenancySupport': 'ENABLED'|'DISABLED', 'DedicatedTenancyManagementCidrRange': 'string', 'StartTime': datetime(2015, 1, 1), 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AccountModifications** *(list) --* The list of modifications to the configuration of BYOL. * *(dict) --* Describes a modification to the configuration of Bring Your Own License (BYOL) for the specified account. * **ModificationState** *(string) --* The state of the modification to the configuration of BYOL. * **DedicatedTenancySupport** *(string) --* The status of BYOL (whether BYOL is being enabled or disabled). * **DedicatedTenancyManagementCidrRange** *(string) --* The IP address range, specified as an IPv4 CIDR block, for the management network interface used for the account. * **StartTime** *(datetime) --* The timestamp when the modification of the BYOL configuration was started. * **ErrorCode** *(string) --* The error code that is returned if the configuration of BYOL cannot be modified. * **ErrorMessage** *(string) --* The text of the error message that is returned if the configuration of BYOL cannot be modified. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / deploy_workspace_applications deploy_workspace_applications ***************************** WorkSpaces.Client.deploy_workspace_applications(**kwargs) Deploys associated applications to the specified WorkSpace See also: AWS API Documentation **Request Syntax** response = client.deploy_workspace_applications( WorkspaceId='string', Force=True|False ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **Force** (*boolean*) -- Indicates whether the force flag is applied for the specified WorkSpace. When the force flag is enabled, it allows previously failed deployments to be retried. Return type: dict Returns: **Response Syntax** { 'Deployment': { 'Associations': [ { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' }, 'WorkspaceId': 'string' }, ] } } **Response Structure** * *(dict) --* * **Deployment** *(dict) --* The list of deployed associations and information about them. * **Associations** *(list) --* The associations between the applications and the associated resources. * *(dict) --* Describes the association between an application and a WorkSpace resource. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource types of the associated resource. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the WorkSpace resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceInUseException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.IncompatibleApplicationsException" WorkSpaces / Client / stop_workspaces_pool stop_workspaces_pool ******************** WorkSpaces.Client.stop_workspaces_pool(**kwargs) Stops the specified pool. You cannot stop a WorkSpace pool unless it has a running mode of "AutoStop" and a state of "AVAILABLE", "IMPAIRED", "UNHEALTHY", or "ERROR". See also: AWS API Documentation **Request Syntax** response = client.stop_workspaces_pool( PoolId='string' ) Parameters: **PoolId** (*string*) -- **[REQUIRED]** The identifier of the pool. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_ip_groups describe_ip_groups ****************** WorkSpaces.Client.describe_ip_groups(**kwargs) Describes one or more of your IP access control groups. See also: AWS API Documentation **Request Syntax** response = client.describe_ip_groups( GroupIds=[ 'string', ], NextToken='string', MaxResults=123 ) Parameters: * **GroupIds** (*list*) -- The identifiers of one or more IP access control groups. * *(string) --* * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **MaxResults** (*integer*) -- The maximum number of items to return. Return type: dict Returns: **Response Syntax** { 'Result': [ { 'groupId': 'string', 'groupName': 'string', 'groupDesc': 'string', 'userRules': [ { 'ipRule': 'string', 'ruleDesc': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Result** *(list) --* Information about the IP access control groups. * *(dict) --* Describes an IP access control group. * **groupId** *(string) --* The identifier of the group. * **groupName** *(string) --* The name of the group. * **groupDesc** *(string) --* The description of the group. * **userRules** *(list) --* The rules. * *(dict) --* Describes a rule for an IP access control group. * **ipRule** *(string) --* The IP address range, in CIDR notation. * **ruleDesc** *(string) --* The description. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / update_workspaces_pool update_workspaces_pool ********************** WorkSpaces.Client.update_workspaces_pool(**kwargs) Updates the specified pool. See also: AWS API Documentation **Request Syntax** response = client.update_workspaces_pool( PoolId='string', Description='string', BundleId='string', DirectoryId='string', Capacity={ 'DesiredUserSessions': 123 }, ApplicationSettings={ 'Status': 'DISABLED'|'ENABLED', 'SettingsGroup': 'string' }, TimeoutSettings={ 'DisconnectTimeoutInSeconds': 123, 'IdleDisconnectTimeoutInSeconds': 123, 'MaxUserDurationInSeconds': 123 }, RunningMode='AUTO_STOP'|'ALWAYS_ON' ) Parameters: * **PoolId** (*string*) -- **[REQUIRED]** The identifier of the specified pool to update. * **Description** (*string*) -- Describes the specified pool to update. * **BundleId** (*string*) -- The identifier of the bundle. * **DirectoryId** (*string*) -- The identifier of the directory. * **Capacity** (*dict*) -- The desired capacity for the pool. * **DesiredUserSessions** *(integer) --* **[REQUIRED]** The desired number of user sessions for the WorkSpaces in the pool. * **ApplicationSettings** (*dict*) -- The persistent application settings for users in the pool. * **Status** *(string) --* **[REQUIRED]** Enables or disables persistent application settings for users during their pool sessions. * **SettingsGroup** *(string) --* The path prefix for the S3 bucket where users’ persistent application settings are stored. You can allow the same persistent application settings to be used across multiple pools by specifying the same settings group for each pool. * **TimeoutSettings** (*dict*) -- Indicates the timeout settings of the specified pool. * **DisconnectTimeoutInSeconds** *(integer) --* Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance. * **IdleDisconnectTimeoutInSeconds** *(integer) --* The amount of time in seconds a connection will stay active while idle. * **MaxUserDurationInSeconds** *(integer) --* Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. * **RunningMode** (*string*) -- The desired running mode for the pool. The running mode can only be updated when the pool is in a stopped state. Return type: dict Returns: **Response Syntax** { 'WorkspacesPool': { 'PoolId': 'string', 'PoolArn': 'string', 'CapacityStatus': { 'AvailableUserSessions': 123, 'DesiredUserSessions': 123, 'ActualUserSessions': 123, 'ActiveUserSessions': 123 }, 'PoolName': 'string', 'Description': 'string', 'State': 'CREATING'|'DELETING'|'RUNNING'|'STARTING'|'STOPPED'|'STOPPING'|'UPDATING', 'CreatedAt': datetime(2015, 1, 1), 'BundleId': 'string', 'DirectoryId': 'string', 'Errors': [ { 'ErrorCode': 'IAM_SERVICE_ROLE_IS_MISSING'|'IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION'|'NETWORK_INTERFACE_LIMIT_EXCEEDED'|'INTERNAL_SERVICE_ERROR'|'MACHINE_ROLE_IS_MISSING'|'STS_DISABLED_IN_REGION'|'SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION'|'SUBNET_NOT_FOUND'|'IMAGE_NOT_FOUND'|'INVALID_SUBNET_CONFIGURATION'|'SECURITY_GROUPS_NOT_FOUND'|'IGW_NOT_ATTACHED'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION'|'WORKSPACES_POOL_STOPPED'|'WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE'|'DOMAIN_JOIN_ERROR_FILE_NOT_FOUND'|'DOMAIN_JOIN_ERROR_ACCESS_DENIED'|'DOMAIN_JOIN_ERROR_LOGON_FAILURE'|'DOMAIN_JOIN_ERROR_INVALID_PARAMETER'|'DOMAIN_JOIN_ERROR_MORE_DATA'|'DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN'|'DOMAIN_JOIN_ERROR_NOT_SUPPORTED'|'DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME'|'DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED'|'DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED'|'DOMAIN_JOIN_NERR_PASSWORD_EXPIRED'|'DOMAIN_JOIN_INTERNAL_SERVICE_ERROR'|'DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING'|'DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE'|'DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID'|'DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_INVALID'|'BUNDLE_NOT_FOUND'|'DIRECTORY_NOT_FOUND'|'INSUFFICIENT_PERMISSIONS_ERROR'|'DEFAULT_OU_IS_MISSING', 'ErrorMessage': 'string' }, ], 'ApplicationSettings': { 'Status': 'DISABLED'|'ENABLED', 'SettingsGroup': 'string', 'S3BucketName': 'string' }, 'TimeoutSettings': { 'DisconnectTimeoutInSeconds': 123, 'IdleDisconnectTimeoutInSeconds': 123, 'MaxUserDurationInSeconds': 123 }, 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON' } } **Response Structure** * *(dict) --* * **WorkspacesPool** *(dict) --* Describes the specified pool. * **PoolId** *(string) --* The identifier of a pool. * **PoolArn** *(string) --* The Amazon Resource Name (ARN) for the pool. * **CapacityStatus** *(dict) --* The capacity status for the pool * **AvailableUserSessions** *(integer) --* The number of user sessions currently available for streaming from your pool. AvailableUserSessions = ActualUserSessions - ActiveUserSessions * **DesiredUserSessions** *(integer) --* The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your pool can support in a steady state. * **ActualUserSessions** *(integer) --* The total number of user sessions that are available for streaming or are currently streaming in your pool. ActualUserSessions = AvailableUserSessions + ActiveUserSessions * **ActiveUserSessions** *(integer) --* The number of user sessions currently being used for your pool. * **PoolName** *(string) --* The name of the pool. * **Description** *(string) --* The description of the pool. * **State** *(string) --* The current state of the pool. * **CreatedAt** *(datetime) --* The time the pool was created. * **BundleId** *(string) --* The identifier of the bundle used by the pool. * **DirectoryId** *(string) --* The identifier of the directory used by the pool. * **Errors** *(list) --* The pool errors. * *(dict) --* Describes a pool error. * **ErrorCode** *(string) --* The error code. * **ErrorMessage** *(string) --* The error message. * **ApplicationSettings** *(dict) --* The persistent application settings for users of the pool. * **Status** *(string) --* Specifies whether persistent application settings are enabled for users during their pool sessions. * **SettingsGroup** *(string) --* The path prefix for the S3 bucket where users’ persistent application settings are stored. * **S3BucketName** *(string) --* The S3 bucket where users’ persistent application settings are stored. When persistent application settings are enabled for the first time for an account in an Amazon Web Services Region, an S3 bucket is created. The bucket is unique to the Amazon Web Services account and the Region. * **TimeoutSettings** *(dict) --* The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance. * **DisconnectTimeoutInSeconds** *(integer) --* Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance. * **IdleDisconnectTimeoutInSeconds** *(integer) --* The amount of time in seconds a connection will stay active while idle. * **MaxUserDurationInSeconds** *(integer) --* Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. * **RunningMode** *(string) --* The running mode of the pool. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / delete_workspace_bundle delete_workspace_bundle *********************** WorkSpaces.Client.delete_workspace_bundle(**kwargs) Deletes the specified WorkSpace bundle. For more information about deleting WorkSpace bundles, see Delete a Custom WorkSpaces Bundle or Image. See also: AWS API Documentation **Request Syntax** response = client.delete_workspace_bundle( BundleId='string' ) Parameters: **BundleId** (*string*) -- The identifier of the bundle. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_workspace_bundles describe_workspace_bundles ************************** WorkSpaces.Client.describe_workspace_bundles(**kwargs) Retrieves a list that describes the available WorkSpace bundles. You can filter the results using either bundle ID or owner, but not both. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_bundles( BundleIds=[ 'string', ], Owner='string', NextToken='string' ) Parameters: * **BundleIds** (*list*) -- The identifiers of the bundles. You cannot combine this parameter with any other filter. * *(string) --* * **Owner** (*string*) -- The owner of the bundles. You cannot combine this parameter with any other filter. To describe the bundles provided by Amazon Web Services, specify "AMAZON". To describe the bundles that belong to your account, don't specify a value. * **NextToken** (*string*) -- The token for the next set of results. (You received this token from a previous call.) Return type: dict Returns: **Response Syntax** { 'Bundles': [ { 'BundleId': 'string', 'Name': 'string', 'Owner': 'string', 'Description': 'string', 'ImageId': 'string', 'RootStorage': { 'Capacity': 'string' }, 'UserStorage': { 'Capacity': 'string' }, 'ComputeType': { 'Name': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN' }, 'LastUpdatedTime': datetime(2015, 1, 1), 'CreationTime': datetime(2015, 1, 1), 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'BundleType': 'REGULAR'|'STANDBY' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Bundles** *(list) --* Information about the bundles. * *(dict) --* Describes a WorkSpace bundle. * **BundleId** *(string) --* The identifier of the bundle. * **Name** *(string) --* The name of the bundle. * **Owner** *(string) --* The owner of the bundle. This is the account identifier of the owner, or "AMAZON" if the bundle is provided by Amazon Web Services. * **Description** *(string) --* The description of the bundle. * **ImageId** *(string) --* The identifier of the image that was used to create the bundle. * **RootStorage** *(dict) --* The size of the root volume. * **Capacity** *(string) --* The size of the root volume. * **UserStorage** *(dict) --* The size of the user volume. * **Capacity** *(string) --* The size of the user volume. * **ComputeType** *(dict) --* The compute type of the bundle. For more information, see Amazon WorkSpaces Bundles. * **Name** *(string) --* The compute type. * **LastUpdatedTime** *(datetime) --* The last time that the bundle was updated. * **CreationTime** *(datetime) --* The time when the bundle was created. * **State** *(string) --* The state of the WorkSpace bundle. * **BundleType** *(string) --* The type of WorkSpace bundle. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. This token is valid for one day and must be used within that time frame. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / modify_client_properties modify_client_properties ************************ WorkSpaces.Client.modify_client_properties(**kwargs) Modifies the properties of the specified Amazon WorkSpaces clients. See also: AWS API Documentation **Request Syntax** response = client.modify_client_properties( ResourceId='string', ClientProperties={ 'ReconnectEnabled': 'ENABLED'|'DISABLED', 'LogUploadEnabled': 'ENABLED'|'DISABLED' } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The resource identifiers, in the form of directory IDs. * **ClientProperties** (*dict*) -- **[REQUIRED]** Information about the Amazon WorkSpaces client. * **ReconnectEnabled** *(string) --* Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re-entering their credentials. * **LogUploadEnabled** *(string) --* Specifies whether users can upload diagnostic log files of Amazon WorkSpaces client directly to WorkSpaces to troubleshoot issues when using the WorkSpaces client. When enabled, the log files will be sent to WorkSpaces automatically and will be applied to all users in the specified directory. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / start_workspaces start_workspaces **************** WorkSpaces.Client.start_workspaces(**kwargs) Starts the specified WorkSpaces. You cannot start a WorkSpace unless it has a running mode of "AutoStop" or "Manual" and a state of "STOPPED". See also: AWS API Documentation **Request Syntax** response = client.start_workspaces( StartWorkspaceRequests=[ { 'WorkspaceId': 'string' }, ] ) Parameters: **StartWorkspaceRequests** (*list*) -- **[REQUIRED]** The WorkSpaces to start. You can specify up to 25 WorkSpaces. * *(dict) --* Information used to start a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceId': 'string', 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpaces that could not be started. * *(dict) --* Describes a WorkSpace that could not be rebooted. ( RebootWorkspaces), rebuilt ( RebuildWorkspaces), restored ( RestoreWorkspace), terminated ( TerminateWorkspaces), started ( StartWorkspaces), or stopped ( StopWorkspaces). * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be rebooted. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be rebooted. WorkSpaces / Client / create_account_link_invitation create_account_link_invitation ****************************** WorkSpaces.Client.create_account_link_invitation(**kwargs) Creates the account link invitation. See also: AWS API Documentation **Request Syntax** response = client.create_account_link_invitation( TargetAccountId='string', ClientToken='string' ) Parameters: * **TargetAccountId** (*string*) -- **[REQUIRED]** The identifier of the target account. * **ClientToken** (*string*) -- A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation. Return type: dict Returns: **Response Syntax** { 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } } **Response Structure** * *(dict) --* * **AccountLink** *(dict) --* Information about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. **Exceptions** * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ConflictException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / create_tags create_tags *********** WorkSpaces.Client.create_tags(**kwargs) Creates the specified tags for the specified WorkSpaces resource. See also: AWS API Documentation **Request Syntax** response = client.create_tags( ResourceId='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases. * **Tags** (*list*) -- **[REQUIRED]** The tags. Each WorkSpaces resource can have a maximum of 50 tags. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" WorkSpaces / Client / associate_workspace_application associate_workspace_application ******************************* WorkSpaces.Client.associate_workspace_application(**kwargs) Associates the specified application to the specified WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.associate_workspace_application( WorkspaceId='string', ApplicationId='string' ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **ApplicationId** (*string*) -- **[REQUIRED]** The identifier of the application. Return type: dict Returns: **Response Syntax** { 'Association': { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' }, 'WorkspaceId': 'string' } } **Response Structure** * *(dict) --* * **Association** *(dict) --* Information about the association between the specified WorkSpace and the specified application. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource types of the associated resource. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the WorkSpace resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceInUseException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ComputeNotCompatibleException" * "WorkSpaces.Client.exceptions.OperatingSystemNotCompatibleExcept ion" * "WorkSpaces.Client.exceptions.ApplicationNotSupportedException" * "WorkSpaces.Client.exceptions.IncompatibleApplicationsException" WorkSpaces / Client / update_workspace_image_permission update_workspace_image_permission ********************************* WorkSpaces.Client.update_workspace_image_permission(**kwargs) Shares or unshares an image with one account in the same Amazon Web Services Region by specifying whether that account has permission to copy the image. If the copy image permission is granted, the image is shared with that account. If the copy image permission is revoked, the image is unshared with the account. After an image has been shared, the recipient account can copy the image to other Regions as needed. In the China (Ningxia) Region, you can copy images only within the same Region. In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web ServicesSupport. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image. Note: * To delete an image that has been shared, you must unshare the image before you delete it. * Sharing Bring Your Own License (BYOL) images across Amazon Web Services accounts isn't supported at this time in Amazon Web Services GovCloud (US). To share BYOL images across accounts in Amazon Web Services GovCloud (US), contact Amazon Web ServicesSupport. See also: AWS API Documentation **Request Syntax** response = client.update_workspace_image_permission( ImageId='string', AllowCopyImage=True|False, SharedAccountId='string' ) Parameters: * **ImageId** (*string*) -- **[REQUIRED]** The identifier of the image. * **AllowCopyImage** (*boolean*) -- **[REQUIRED]** The permission to copy the image. This permission can be revoked only after an image has been shared. * **SharedAccountId** (*string*) -- **[REQUIRED]** The identifier of the Amazon Web Services account to share or unshare the image with. Warning: Before sharing the image, confirm that you are sharing to the correct Amazon Web Services account ID. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / create_ip_group create_ip_group *************** WorkSpaces.Client.create_ip_group(**kwargs) Creates an IP access control group. An IP access control group provides you with the ability to control the IP addresses from which users are allowed to access their WorkSpaces. To specify the CIDR address ranges, add rules to your IP access control group and then associate the group with your directory. You can add rules when you create the group or at any time using AuthorizeIpRules. There is a default IP access control group associated with your directory. If you don't associate an IP access control group with your directory, the default group is used. The default group includes a default rule that allows users to access their WorkSpaces from anywhere. You cannot modify the default IP access control group for your directory. See also: AWS API Documentation **Request Syntax** response = client.create_ip_group( GroupName='string', GroupDesc='string', UserRules=[ { 'ipRule': 'string', 'ruleDesc': 'string' }, ], Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **GroupName** (*string*) -- **[REQUIRED]** The name of the group. * **GroupDesc** (*string*) -- The description of the group. * **UserRules** (*list*) -- The rules to add to the group. * *(dict) --* Describes a rule for an IP access control group. * **ipRule** *(string) --* The IP address range, in CIDR notation. * **ruleDesc** *(string) --* The description. * **Tags** (*list*) -- The tags. Each WorkSpaces resource can have a maximum of 50 tags. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'GroupId': 'string' } **Response Structure** * *(dict) --* * **GroupId** *(string) --* The identifier of the group. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceCreationFailedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / modify_streaming_properties modify_streaming_properties *************************** WorkSpaces.Client.modify_streaming_properties(**kwargs) Modifies the specified streaming properties. See also: AWS API Documentation **Request Syntax** response = client.modify_streaming_properties( ResourceId='string', StreamingProperties={ 'StreamingExperiencePreferredProtocol': 'TCP'|'UDP', 'UserSettings': [ { 'Action': 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE'|'CLIPBOARD_COPY_TO_LOCAL_DEVICE'|'PRINTING_TO_LOCAL_DEVICE'|'SMART_CARD', 'Permission': 'ENABLED'|'DISABLED', 'MaximumLength': 123 }, ], 'StorageConnectors': [ { 'ConnectorType': 'HOME_FOLDER', 'Status': 'ENABLED'|'DISABLED' }, ], 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED', 'PreferredProtocol': 'TCP'|'NONE' } } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the resource. * **StreamingProperties** (*dict*) -- The streaming properties to configure. * **StreamingExperiencePreferredProtocol** *(string) --* Indicates the type of preferred protocol for the streaming experience. * **UserSettings** *(list) --* Indicates the permission settings asscoiated with the user. * *(dict) --* Information about the user's permission settings. * **Action** *(string) --* **[REQUIRED]** Indicates the type of action. * **Permission** *(string) --* **[REQUIRED]** Indicates if the setting is enabled or disabled. * **MaximumLength** *(integer) --* Indicates the maximum character length for the specified user setting. * **StorageConnectors** *(list) --* Indicates the storage connector used * *(dict) --* Describes the storage connector. * **ConnectorType** *(string) --* **[REQUIRED]** The type of connector used to save user files. * **Status** *(string) --* **[REQUIRED]** Indicates if the storage connetor is enabled or disabled. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* **[REQUIRED]** Indicates if Global Accelerator for directory is enabled or disabled. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / create_connect_client_add_in create_connect_client_add_in **************************** WorkSpaces.Client.create_connect_client_add_in(**kwargs) Creates a client-add-in for Amazon Connect within a directory. You can create only one Amazon Connect client add-in within a directory. This client add-in allows WorkSpaces users to seamlessly connect to Amazon Connect. See also: AWS API Documentation **Request Syntax** response = client.create_connect_client_add_in( ResourceId='string', Name='string', URL='string' ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier for which to configure the client add-in. * **Name** (*string*) -- **[REQUIRED]** The name of the client add-in. * **URL** (*string*) -- **[REQUIRED]** The endpoint URL of the Amazon Connect client add-in. Return type: dict Returns: **Response Syntax** { 'AddInId': 'string' } **Response Structure** * *(dict) --* * **AddInId** *(string) --* The client add-in identifier. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceCreationFailedException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / register_workspace_directory register_workspace_directory **************************** WorkSpaces.Client.register_workspace_directory(**kwargs) Registers the specified directory. This operation is asynchronous and returns before the WorkSpace directory is registered. If this is the first time you are registering a directory, you will need to create the workspaces_DefaultRole role before you can register a directory. For more information, see Creating the workspaces_DefaultRole Role. See also: AWS API Documentation **Request Syntax** response = client.register_workspace_directory( DirectoryId='string', SubnetIds=[ 'string', ], EnableSelfService=True|False, Tenancy='DEDICATED'|'SHARED', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], WorkspaceDirectoryName='string', WorkspaceDirectoryDescription='string', UserIdentityType='CUSTOMER_MANAGED'|'AWS_DIRECTORY_SERVICE'|'AWS_IAM_IDENTITY_CENTER', IdcInstanceArn='string', MicrosoftEntraConfig={ 'TenantId': 'string', 'ApplicationConfigSecretArn': 'string' }, WorkspaceType='PERSONAL'|'POOLS', ActiveDirectoryConfig={ 'DomainName': 'string', 'ServiceAccountSecretArn': 'string' } ) Parameters: * **DirectoryId** (*string*) -- The identifier of the directory. You cannot register a directory if it does not have a status of Active. If the directory does not have a status of Active, you will receive an InvalidResourceStateException error. If you have already registered the maximum number of directories that you can register with Amazon WorkSpaces, you will receive a ResourceLimitExceededException error. Deregister directories that you are not using for WorkSpaces, and try again. * **SubnetIds** (*list*) -- The identifiers of the subnets for your virtual private cloud (VPC). Make sure that the subnets are in supported Availability Zones. The subnets must also be in separate Availability Zones. If these conditions are not met, you will receive an OperationNotSupportedException error. * *(string) --* * **EnableSelfService** (*boolean*) -- Indicates whether self- service capabilities are enabled or disabled. * **Tenancy** (*string*) -- Indicates whether your WorkSpace directory is dedicated or shared. To use Bring Your Own License (BYOL) images, this value must be set to "DEDICATED" and your Amazon Web Services account must be enabled for BYOL. If your account has not been enabled for BYOL, you will receive an InvalidParameterValuesException error. For more information about BYOL images, see Bring Your Own Windows Desktop Images. * **Tags** (*list*) -- The tags associated with the directory. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. * **WorkspaceDirectoryName** (*string*) -- The name of the directory to register. * **WorkspaceDirectoryDescription** (*string*) -- Description of the directory to register. * **UserIdentityType** (*string*) -- The type of identity management the user is using. * **IdcInstanceArn** (*string*) -- The Amazon Resource Name (ARN) of the identity center instance. * **MicrosoftEntraConfig** (*dict*) -- The details about Microsoft Entra config. * **TenantId** *(string) --* The identifier of the tenant. * **ApplicationConfigSecretArn** *(string) --* The Amazon Resource Name (ARN) of the application config. * **WorkspaceType** (*string*) -- Indicates whether the directory's WorkSpace type is personal or pools. * **ActiveDirectoryConfig** (*dict*) -- The active directory config of the directory. * **DomainName** *(string) --* **[REQUIRED]** The name of the domain. * **ServiceAccountSecretArn** *(string) --* **[REQUIRED]** Indicates the secret ARN on the service account. Return type: dict Returns: **Response Syntax** { 'DirectoryId': 'string', 'State': 'REGISTERING'|'REGISTERED'|'DEREGISTERING'|'DEREGISTERED'|'ERROR' } **Response Structure** * *(dict) --* * **DirectoryId** *(string) --* The identifier of the directory. * **State** *(string) --* The registration status of the WorkSpace directory. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.WorkspacesDefaultRoleNotFoundExcep tion" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.UnsupportedNetworkConfigurationExc eption" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" WorkSpaces / Client / describe_workspaces_connection_status describe_workspaces_connection_status ************************************* WorkSpaces.Client.describe_workspaces_connection_status(**kwargs) Describes the connection status of the specified WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.describe_workspaces_connection_status( WorkspaceIds=[ 'string', ], NextToken='string' ) Parameters: * **WorkspaceIds** (*list*) -- The identifiers of the WorkSpaces. You can specify up to 25 WorkSpaces. * *(string) --* * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'WorkspacesConnectionStatus': [ { 'WorkspaceId': 'string', 'ConnectionState': 'CONNECTED'|'DISCONNECTED'|'UNKNOWN', 'ConnectionStateCheckTimestamp': datetime(2015, 1, 1), 'LastKnownUserConnectionTimestamp': datetime(2015, 1, 1) }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **WorkspacesConnectionStatus** *(list) --* Information about the connection status of the WorkSpace. * *(dict) --* Describes the connection status of a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ConnectionState** *(string) --* The connection state of the WorkSpace. The connection state is unknown if the WorkSpace is stopped. * **ConnectionStateCheckTimestamp** *(datetime) --* The timestamp of the connection status check. * **LastKnownUserConnectionTimestamp** *(datetime) --* The timestamp of the last known user connection. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / describe_account describe_account **************** WorkSpaces.Client.describe_account() Retrieves a list that describes the configuration of Bring Your Own License (BYOL) for the specified account. See also: AWS API Documentation **Request Syntax** response = client.describe_account() Return type: dict Returns: **Response Syntax** { 'DedicatedTenancySupport': 'ENABLED'|'DISABLED', 'DedicatedTenancyManagementCidrRange': 'string', 'DedicatedTenancyAccountType': 'SOURCE_ACCOUNT'|'TARGET_ACCOUNT' } **Response Structure** * *(dict) --* * **DedicatedTenancySupport** *(string) --* The status of BYOL (whether BYOL is enabled or disabled). * **DedicatedTenancyManagementCidrRange** *(string) --* The IP address range, specified as an IPv4 CIDR block, used for the management network interface. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace. * **DedicatedTenancyAccountType** *(string) --* The type of linked account. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / rebuild_workspaces rebuild_workspaces ****************** WorkSpaces.Client.rebuild_workspaces(**kwargs) Rebuilds the specified WorkSpace. You cannot rebuild a WorkSpace unless its state is "AVAILABLE", "ERROR", "UNHEALTHY", "STOPPED", or "REBOOTING". Rebuilding a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Rebuild a WorkSpace. This operation is asynchronous and returns before the WorkSpaces have been completely rebuilt. See also: AWS API Documentation **Request Syntax** response = client.rebuild_workspaces( RebuildWorkspaceRequests=[ { 'WorkspaceId': 'string' }, ] ) Parameters: **RebuildWorkspaceRequests** (*list*) -- **[REQUIRED]** The WorkSpace to rebuild. You can specify a single WorkSpace. * *(dict) --* Describes the information used to rebuild a WorkSpace. * **WorkspaceId** *(string) --* **[REQUIRED]** The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceId': 'string', 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpace that could not be rebuilt. * *(dict) --* Describes a WorkSpace that could not be rebooted. ( RebootWorkspaces), rebuilt ( RebuildWorkspaces), restored ( RestoreWorkspace), terminated ( TerminateWorkspaces), started ( StartWorkspaces), or stopped ( StopWorkspaces). * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be rebooted. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be rebooted. **Exceptions** * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / associate_ip_groups associate_ip_groups ******************* WorkSpaces.Client.associate_ip_groups(**kwargs) Associates the specified IP access control group with the specified directory. See also: AWS API Documentation **Request Syntax** response = client.associate_ip_groups( DirectoryId='string', GroupIds=[ 'string', ] ) Parameters: * **DirectoryId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **GroupIds** (*list*) -- **[REQUIRED]** The identifiers of one or more IP access control groups. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / list_account_links list_account_links ****************** WorkSpaces.Client.list_account_links(**kwargs) Lists all account links. See also: AWS API Documentation **Request Syntax** response = client.list_account_links( LinkStatusFilter=[ 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', ], NextToken='string', MaxResults=123 ) Parameters: * **LinkStatusFilter** (*list*) -- Filters the account based on their link status. * *(string) --* * **NextToken** (*string*) -- The token to use to retrieve the next page of results. This value is null when there are no more results to return. * **MaxResults** (*integer*) -- The maximum number of accounts to return. Return type: dict Returns: **Response Syntax** { 'AccountLinks': [ { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AccountLinks** *(list) --* Information about the account links. * *(dict) --* Information about about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / delete_tags delete_tags *********** WorkSpaces.Client.delete_tags(**kwargs) Deletes the specified tags from the specified WorkSpaces resource. See also: AWS API Documentation **Request Syntax** response = client.delete_tags( ResourceId='string', TagKeys=[ 'string', ] ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, and connection aliases. * **TagKeys** (*list*) -- **[REQUIRED]** The tag keys. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / close close ***** WorkSpaces.Client.close() Closes underlying endpoint connections. WorkSpaces / Client / modify_account modify_account ************** WorkSpaces.Client.modify_account(**kwargs) Modifies the configuration of Bring Your Own License (BYOL) for the specified account. See also: AWS API Documentation **Request Syntax** response = client.modify_account( DedicatedTenancySupport='ENABLED', DedicatedTenancyManagementCidrRange='string' ) Parameters: * **DedicatedTenancySupport** (*string*) -- The status of BYOL. * **DedicatedTenancyManagementCidrRange** (*string*) -- The IP address range, specified as an IPv4 CIDR block, for the management network interface. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). The CIDR block size must be /16 (for example, 203.0.113.25/16). It must also be specified as available by the "ListAvailableManagementCidrRanges" operation. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / describe_workspaces describe_workspaces ******************* WorkSpaces.Client.describe_workspaces(**kwargs) Describes the specified WorkSpaces. You can filter the results by using the bundle identifier, directory identifier, or owner, but you can specify only one filter at a time. See also: AWS API Documentation **Request Syntax** response = client.describe_workspaces( WorkspaceIds=[ 'string', ], DirectoryId='string', UserName='string', BundleId='string', Limit=123, NextToken='string', WorkspaceName='string' ) Parameters: * **WorkspaceIds** (*list*) -- The identifiers of the WorkSpaces. You cannot combine this parameter with any other filter. Because the CreateWorkspaces operation is asynchronous, the identifier it returns is not immediately available. If you immediately call DescribeWorkspaces with this identifier, no information is returned. * *(string) --* * **DirectoryId** (*string*) -- The identifier of the directory. In addition, you can optionally specify a specific directory user (see "UserName"). You cannot combine this parameter with any other filter. * **UserName** (*string*) -- The name of the directory user. You must specify this parameter with "DirectoryId". * **BundleId** (*string*) -- The identifier of the bundle. All WorkSpaces that are created from this bundle are retrieved. You cannot combine this parameter with any other filter. * **Limit** (*integer*) -- The maximum number of items to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **WorkspaceName** (*string*) -- The name of the user-decoupled WorkSpace. Return type: dict Returns: **Response Syntax** { 'Workspaces': [ { 'WorkspaceId': 'string', 'DirectoryId': 'string', 'UserName': 'string', 'IpAddress': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'BundleId': 'string', 'SubnetId': 'string', 'ErrorMessage': 'string', 'ErrorCode': 'string', 'ComputerName': 'string', 'VolumeEncryptionKey': 'string', 'UserVolumeEncryptionEnabled': True|False, 'RootVolumeEncryptionEnabled': True|False, 'WorkspaceName': 'string', 'WorkspaceProperties': { 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, 'ModificationStates': [ { 'Resource': 'ROOT_VOLUME'|'USER_VOLUME'|'COMPUTE_TYPE', 'State': 'UPDATE_INITIATED'|'UPDATE_IN_PROGRESS' }, ], 'RelatedWorkspaces': [ { 'WorkspaceId': 'string', 'Region': 'string', 'State': 'PENDING'|'AVAILABLE'|'IMPAIRED'|'UNHEALTHY'|'REBOOTING'|'STARTING'|'REBUILDING'|'RESTORING'|'MAINTENANCE'|'ADMIN_MAINTENANCE'|'TERMINATING'|'TERMINATED'|'SUSPENDED'|'UPDATING'|'STOPPING'|'STOPPED'|'ERROR', 'Type': 'PRIMARY'|'STANDBY' }, ], 'DataReplicationSettings': { 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, 'StandbyWorkspacesProperties': [ { 'StandbyWorkspaceId': 'string', 'DataReplication': 'NO_REPLICATION'|'PRIMARY_AS_SOURCE', 'RecoverySnapshotTime': datetime(2015, 1, 1) }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Workspaces** *(list) --* Information about the WorkSpaces. Because CreateWorkspaces is an asynchronous operation, some of the returned information could be incomplete. * *(dict) --* Describes a WorkSpace. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **DirectoryId** *(string) --* The identifier of the Directory Service directory for the WorkSpace. * **UserName** *(string) --* The user for the WorkSpace. * **IpAddress** *(string) --* The IP address of the WorkSpace. * **State** *(string) --* The operational state of the WorkSpace. * "PENDING" – The WorkSpace is in a waiting state (for example, the WorkSpace is being created). * "AVAILABLE" – The WorkSpace is running and has passed the health checks. * "IMPAIRED" – Refer to "UNHEALTHY" state. * "UNHEALTHY" – The WorkSpace is not responding to health checks. * "REBOOTING" – The WorkSpace is being rebooted (restarted). * "STARTING" – The WorkSpace is starting up and health checks are being run. * "REBUILDING" – The WorkSpace is being rebuilt. * "RESTORING" – The WorkSpace is being restored. * "MAINTENANCE" – The WorkSpace is undergoing scheduled maintenance by Amazon Web Services. * "ADMIN_MAINTENANCE" – The WorkSpace is undergoing maintenance by the WorkSpaces administrator. * "TERMINATING" – The WorkSpace is being deleted. * "TERMINATED" – The WorkSpace has been deleted. * "SUSPENDED" – The WorkSpace has been suspended for image creation. * "UPDATING" – The WorkSpace is undergoing an update. * "STOPPING" – The WorkSpace is being stopped. * "STOPPED" – The WorkSpace has been stopped. * "ERROR" – The WorkSpace is an error state (for example, an error occurred during startup). Note: After a WorkSpace is terminated, the "TERMINATED" state is returned only briefly before the WorkSpace directory metadata is cleaned up, so this state is rarely returned. To confirm that a WorkSpace is terminated, check for the WorkSpace ID by using DescribeWorkSpaces. If the WorkSpace ID isn't returned, then the WorkSpace has been successfully terminated. * **BundleId** *(string) --* The identifier of the bundle used to create the WorkSpace. * **SubnetId** *(string) --* The identifier of the subnet for the WorkSpace. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be created. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be created. * **ComputerName** *(string) --* The name of the WorkSpace, as seen by the operating system. The format of this name varies. For more information, see Launch a WorkSpace. * **VolumeEncryptionKey** *(string) --* The ARN of the symmetric KMS key used to encrypt data stored on your WorkSpace. Amazon WorkSpaces does not support asymmetric KMS keys. * **UserVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the user volume is encrypted. * **RootVolumeEncryptionEnabled** *(boolean) --* Indicates whether the data stored on the root volume is encrypted. * **WorkspaceName** *(string) --* The name of the user-decoupled WorkSpace. * **WorkspaceProperties** *(dict) --* The properties of the WorkSpace. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **ModificationStates** *(list) --* The modification states of the WorkSpace. * *(dict) --* Describes a WorkSpace modification. * **Resource** *(string) --* The resource. * **State** *(string) --* The modification state. * **RelatedWorkspaces** *(list) --* The standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * *(dict) --* Describes the related WorkSpace. The related WorkSpace could be a standby WorkSpace or primary WorkSpace related to the specified WorkSpace. * **WorkspaceId** *(string) --* The identifier of the related WorkSpace. * **Region** *(string) --* The Region of the related WorkSpace. * **State** *(string) --* Indicates the state of the WorkSpace. * **Type** *(string) --* Indicates the type of WorkSpace. * **DataReplicationSettings** *(dict) --* Indicates the settings of the data replication. * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. * **StandbyWorkspacesProperties** *(list) --* The properties of the standby WorkSpace * *(dict) --* Describes the properties of the related standby WorkSpaces. * **StandbyWorkspaceId** *(string) --* The identifier of the standby WorkSpace * **DataReplication** *(string) --* Indicates whether data replication is enabled, and if enabled, the type of data replication. * **RecoverySnapshotTime** *(datetime) --* The date and time at which the last successful snapshot was taken of the primary WorkSpace used for replicating data. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" WorkSpaces / Client / modify_certificate_based_auth_properties modify_certificate_based_auth_properties **************************************** WorkSpaces.Client.modify_certificate_based_auth_properties(**kwargs) Modifies the properties of the certificate-based authentication you want to use with your WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.modify_certificate_based_auth_properties( ResourceId='string', CertificateBasedAuthProperties={ 'Status': 'DISABLED'|'ENABLED', 'CertificateAuthorityArn': 'string' }, PropertiesToDelete=[ 'CERTIFICATE_BASED_AUTH_PROPERTIES_CERTIFICATE_AUTHORITY_ARN', ] ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The resource identifiers, in the form of directory IDs. * **CertificateBasedAuthProperties** (*dict*) -- The properties of the certificate-based authentication. * **Status** *(string) --* The status of the certificate-based authentication properties. * **CertificateAuthorityArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource. * **PropertiesToDelete** (*list*) -- The properties of the certificate-based authentication you want to delete. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / describe_connection_aliases describe_connection_aliases *************************** WorkSpaces.Client.describe_connection_aliases(**kwargs) Retrieves a list that describes the connection aliases used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.describe_connection_aliases( AliasIds=[ 'string', ], ResourceId='string', Limit=123, NextToken='string' ) Parameters: * **AliasIds** (*list*) -- The identifiers of the connection aliases to describe. * *(string) --* * **ResourceId** (*string*) -- The identifier of the directory associated with the connection alias. * **Limit** (*integer*) -- The maximum number of connection aliases to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'ConnectionAliases': [ { 'ConnectionString': 'string', 'AliasId': 'string', 'State': 'CREATING'|'CREATED'|'DELETING', 'OwnerAccountId': 'string', 'Associations': [ { 'AssociationStatus': 'NOT_ASSOCIATED'|'ASSOCIATED_WITH_OWNER_ACCOUNT'|'ASSOCIATED_WITH_SHARED_ACCOUNT'|'PENDING_ASSOCIATION'|'PENDING_DISASSOCIATION', 'AssociatedAccountId': 'string', 'ResourceId': 'string', 'ConnectionIdentifier': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ConnectionAliases** *(list) --* Information about the specified connection aliases. * *(dict) --* Describes a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. * **ConnectionString** *(string) --* The connection string specified for the connection alias. The connection string must be in the form of a fully qualified domain name (FQDN), such as "www.example.com". * **AliasId** *(string) --* The identifier of the connection alias. * **State** *(string) --* The current state of the connection alias. * **OwnerAccountId** *(string) --* The identifier of the Amazon Web Services account that owns the connection alias. * **Associations** *(list) --* The association status of the connection alias. * *(dict) --* Describes a connection alias association that is used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. * **AssociationStatus** *(string) --* The association status of the connection alias. * **AssociatedAccountId** *(string) --* The identifier of the Amazon Web Services account that associated the connection alias with a directory. * **ResourceId** *(string) --* The identifier of the directory associated with a connection alias. * **ConnectionIdentifier** *(string) --* The identifier of the connection alias association. You use the connection identifier in the DNS TXT record when you're configuring your DNS routing policies. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / modify_workspace_properties modify_workspace_properties *************************** WorkSpaces.Client.modify_workspace_properties(**kwargs) Modifies the specified WorkSpace properties. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. Note: The "MANUAL" running mode value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. See also: AWS API Documentation **Request Syntax** response = client.modify_workspace_properties( WorkspaceId='string', WorkspaceProperties={ 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON'|'MANUAL', 'RunningModeAutoStopTimeoutInMinutes': 123, 'RootVolumeSizeGib': 123, 'UserVolumeSizeGib': 123, 'ComputeTypeName': 'VALUE'|'STANDARD'|'PERFORMANCE'|'POWER'|'GRAPHICS'|'POWERPRO'|'GENERALPURPOSE_4XLARGE'|'GENERALPURPOSE_8XLARGE'|'GRAPHICSPRO'|'GRAPHICS_G4DN'|'GRAPHICSPRO_G4DN', 'Protocols': [ 'PCOIP'|'WSP', ], 'OperatingSystemName': 'AMAZON_LINUX_2'|'UBUNTU_18_04'|'UBUNTU_20_04'|'UBUNTU_22_04'|'UNKNOWN'|'WINDOWS_10'|'WINDOWS_11'|'WINDOWS_7'|'WINDOWS_SERVER_2016'|'WINDOWS_SERVER_2019'|'WINDOWS_SERVER_2022'|'RHEL_8'|'ROCKY_8', 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED'|'INHERITED', 'PreferredProtocol': 'TCP'|'NONE'|'INHERITED' } }, DataReplication='NO_REPLICATION'|'PRIMARY_AS_SOURCE' ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **WorkspaceProperties** (*dict*) -- The properties of the WorkSpace. * **RunningMode** *(string) --* The running mode. For more information, see Manage the WorkSpace Running Mode. Note: The "MANUAL" value is only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use this value. For more information, see Amazon WorkSpaces Core. Review your running mode to ensure you are using one that is optimal for your needs and budget. For more information on switching running modes, see Can I switch between hourly and monthly billing? * **RunningModeAutoStopTimeoutInMinutes** *(integer) --* The time after a user logs off when WorkSpaces are automatically stopped. Configured in 60-minute intervals. * **RootVolumeSizeGib** *(integer) --* The size of the root volume. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **UserVolumeSizeGib** *(integer) --* The size of the user storage. For important information about how to modify the size of the root and user volumes, see Modify a WorkSpace. * **ComputeTypeName** *(string) --* The compute type. For more information, see Amazon WorkSpaces Bundles. * **Protocols** *(list) --* The protocol. For more information, see Protocols for Amazon WorkSpaces. Note: * Only available for WorkSpaces created with PCoIP bundles. * The "Protocols" property is case sensitive. Ensure you use "PCOIP" or "DCV" (formerly WSP). * Unavailable for Windows 7 WorkSpaces and WorkSpaces using GPU-based bundles (Graphics, GraphicsPro, Graphics.g4dn, and GraphicsPro.g4dn). * *(string) --* * **OperatingSystemName** *(string) --* The name of the operating system. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* **[REQUIRED]** Indicates if Global Accelerator for WorkSpaces is enabled, disabled, or the same mode as the associated directory. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **DataReplication** (*string*) -- Indicates the data replication status. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.UnsupportedWorkspaceConfigurationE xception" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ResourceUnavailableException" WorkSpaces / Client / accept_account_link_invitation accept_account_link_invitation ****************************** WorkSpaces.Client.accept_account_link_invitation(**kwargs) Accepts the account link invitation. Warning: There's currently no unlinking capability after you accept the account linking invitation. See also: AWS API Documentation **Request Syntax** response = client.accept_account_link_invitation( LinkId='string', ClientToken='string' ) Parameters: * **LinkId** (*string*) -- **[REQUIRED]** The identifier of the account link. * **ClientToken** (*string*) -- A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation. Return type: dict Returns: **Response Syntax** { 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } } **Response Structure** * *(dict) --* * **AccountLink** *(dict) --* Information about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. **Exceptions** * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ConflictException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / import_workspace_image import_workspace_image ********************** WorkSpaces.Client.import_workspace_image(**kwargs) Imports the specified Windows 10 or 11 Bring Your Own License (BYOL) image into Amazon WorkSpaces. The image must be an already licensed Amazon EC2 image that is in your Amazon Web Services account, and you must own the image. For more information about creating BYOL images, see Bring Your Own Windows Desktop Licenses. See also: AWS API Documentation **Request Syntax** response = client.import_workspace_image( Ec2ImageId='string', IngestionProcess='BYOL_REGULAR'|'BYOL_GRAPHICS'|'BYOL_GRAPHICSPRO'|'BYOL_GRAPHICS_G4DN'|'BYOL_REGULAR_WSP'|'BYOL_GRAPHICS_G4DN_WSP'|'BYOL_REGULAR_BYOP'|'BYOL_GRAPHICS_G4DN_BYOP', ImageName='string', ImageDescription='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ], Applications=[ 'Microsoft_Office_2016'|'Microsoft_Office_2019', ] ) Parameters: * **Ec2ImageId** (*string*) -- **[REQUIRED]** The identifier of the EC2 image. * **IngestionProcess** (*string*) -- **[REQUIRED]** The ingestion process to be used when importing the image, depending on which protocol you want to use for your BYOL Workspace image, either PCoIP, WSP, or bring your own protocol (BYOP). To use DCV, specify a value that ends in "_WSP". To use PCoIP, specify a value that does not end in "_WSP". To use BYOP, specify a value that ends in "_BYOP". For non-GPU-enabled bundles (bundles other than Graphics or GraphicsPro), specify "BYOL_REGULAR", "BYOL_REGULAR_WSP", or "BYOL_REGULAR_BYOP", depending on the protocol. Note: The "BYOL_REGULAR_BYOP" and "BYOL_GRAPHICS_G4DN_BYOP" values are only supported by Amazon WorkSpaces Core. Contact your account team to be allow-listed to use these values. For more information, see Amazon WorkSpaces Core. * **ImageName** (*string*) -- **[REQUIRED]** The name of the WorkSpace image. * **ImageDescription** (*string*) -- **[REQUIRED]** The description of the WorkSpace image. * **Tags** (*list*) -- The tags. Each WorkSpaces resource can have a maximum of 50 tags. * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. * **Applications** (*list*) -- If specified, the version of Microsoft Office to subscribe to. Valid only for Windows 10 and 11 BYOL images. For more information about subscribing to Office for BYOL images, see Bring Your Own Windows Desktop Licenses. Note: * Although this parameter is an array, only one item is allowed at this time. * During the image import process, non-GPU DCV (formerly WSP) WorkSpaces with Windows 11 support only "Microsoft_Office_2019". GPU DCV (formerly WSP) WorkSpaces with Windows 11 do not support Office installation. * *(string) --* Return type: dict Returns: **Response Syntax** { 'ImageId': 'string' } **Response Structure** * *(dict) --* * **ImageId** *(string) --* The identifier of the WorkSpace image. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / restore_workspace restore_workspace ***************** WorkSpaces.Client.restore_workspace(**kwargs) Restores the specified WorkSpace to its last known healthy state. You cannot restore a WorkSpace unless its state is "AVAILABLE", "ERROR", "UNHEALTHY", or "STOPPED". Restoring a WorkSpace is a potentially destructive action that can result in the loss of data. For more information, see Restore a WorkSpace. This operation is asynchronous and returns before the WorkSpace is completely restored. See also: AWS API Documentation **Request Syntax** response = client.restore_workspace( WorkspaceId='string' ) Parameters: **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / describe_workspace_images describe_workspace_images ************************* WorkSpaces.Client.describe_workspace_images(**kwargs) Retrieves a list that describes one or more specified images, if the image identifiers are provided. Otherwise, all images in the account are described. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_images( ImageIds=[ 'string', ], ImageType='OWNED'|'SHARED', NextToken='string', MaxResults=123 ) Parameters: * **ImageIds** (*list*) -- The identifier of the image. * *(string) --* * **ImageType** (*string*) -- The type (owned or shared) of the image. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **MaxResults** (*integer*) -- The maximum number of items to return. Return type: dict Returns: **Response Syntax** { 'Images': [ { 'ImageId': 'string', 'Name': 'string', 'Description': 'string', 'OperatingSystem': { 'Type': 'WINDOWS'|'LINUX' }, 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'RequiredTenancy': 'DEFAULT'|'DEDICATED', 'ErrorCode': 'string', 'ErrorMessage': 'string', 'Created': datetime(2015, 1, 1), 'OwnerAccountId': 'string', 'Updates': { 'UpdateAvailable': True|False, 'Description': 'string' }, 'ErrorDetails': [ { 'ErrorCode': 'OutdatedPowershellVersion'|'OfficeInstalled'|'PCoIPAgentInstalled'|'WindowsUpdatesEnabled'|'AutoMountDisabled'|'WorkspacesBYOLAccountNotFound'|'WorkspacesBYOLAccountDisabled'|'DHCPDisabled'|'DiskFreeSpace'|'AdditionalDrivesAttached'|'OSNotSupported'|'DomainJoined'|'AzureDomainJoined'|'FirewallEnabled'|'VMWareToolsInstalled'|'DiskSizeExceeded'|'IncompatiblePartitioning'|'PendingReboot'|'AutoLogonEnabled'|'RealTimeUniversalDisabled'|'MultipleBootPartition'|'Requires64BitOS'|'ZeroRearmCount'|'InPlaceUpgrade'|'AntiVirusInstalled'|'UEFINotSupported'|'UnknownError'|'AppXPackagesInstalled'|'ReservedStorageInUse'|'AdditionalDrivesPresent'|'WindowsUpdatesRequired'|'SysPrepFileMissing'|'UserProfileMissing'|'InsufficientDiskSpace'|'EnvironmentVariablesPathMissingEntries'|'DomainAccountServicesFound'|'InvalidIp'|'RemoteDesktopServicesDisabled'|'WindowsModulesInstallerDisabled'|'AmazonSsmAgentEnabled'|'UnsupportedSecurityProtocol'|'MultipleUserProfiles'|'StagedAppxPackage'|'UnsupportedOsUpgrade'|'InsufficientRearmCount'|'ProtocolOSIncompatibility'|'MemoryIntegrityIncompatibility'|'RestrictedDriveLetterInUse', 'ErrorMessage': 'string' }, ] }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Images** *(list) --* Information about the images. * *(dict) --* Describes a WorkSpace image. * **ImageId** *(string) --* The identifier of the image. * **Name** *(string) --* The name of the image. * **Description** *(string) --* The description of the image. * **OperatingSystem** *(dict) --* The operating system that the image is running. * **Type** *(string) --* The operating system. * **State** *(string) --* The status of the image. * **RequiredTenancy** *(string) --* Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to "DEDICATED". For more information, see Bring Your Own Windows Desktop Images. * **ErrorCode** *(string) --* The error code that is returned for the image. * **ErrorMessage** *(string) --* The text of the error message that is returned for the image. * **Created** *(datetime) --* The date when the image was created. If the image has been shared, the Amazon Web Services account that the image has been shared with sees the original creation date of the image. * **OwnerAccountId** *(string) --* The identifier of the Amazon Web Services account that owns the image. * **Updates** *(dict) --* The updates (if any) that are available for the specified image. * **UpdateAvailable** *(boolean) --* Indicates whether updated drivers or other components are available for the specified WorkSpace image. * **Description** *(string) --* A description of whether updates for the WorkSpace image are pending or available. * **ErrorDetails** *(list) --* Additional details of the error returned for the image, including the possible causes of the errors and troubleshooting information. * *(dict) --* Describes in-depth details about the error. These details include the possible causes of the error and troubleshooting information. * **ErrorCode** *(string) --* Indicates the error code returned. * **ErrorMessage** *(string) --* The text of the error message related the error code. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_client_properties describe_client_properties ************************** WorkSpaces.Client.describe_client_properties(**kwargs) Retrieves a list that describes one or more specified Amazon WorkSpaces clients. See also: AWS API Documentation **Request Syntax** response = client.describe_client_properties( ResourceIds=[ 'string', ] ) Parameters: **ResourceIds** (*list*) -- **[REQUIRED]** The resource identifier, in the form of directory IDs. * *(string) --* Return type: dict Returns: **Response Syntax** { 'ClientPropertiesList': [ { 'ResourceId': 'string', 'ClientProperties': { 'ReconnectEnabled': 'ENABLED'|'DISABLED', 'LogUploadEnabled': 'ENABLED'|'DISABLED' } }, ] } **Response Structure** * *(dict) --* * **ClientPropertiesList** *(list) --* Information about the specified Amazon WorkSpaces clients. * *(dict) --* Information about the Amazon WorkSpaces client. * **ResourceId** *(string) --* The resource identifier, in the form of a directory ID. * **ClientProperties** *(dict) --* Information about the Amazon WorkSpaces client. * **ReconnectEnabled** *(string) --* Specifies whether users can cache their credentials on the Amazon WorkSpaces client. When enabled, users can choose to reconnect to their WorkSpaces without re- entering their credentials. * **LogUploadEnabled** *(string) --* Specifies whether users can upload diagnostic log files of Amazon WorkSpaces client directly to WorkSpaces to troubleshoot issues when using the WorkSpaces client. When enabled, the log files will be sent to WorkSpaces automatically and will be applied to all users in the specified directory. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_workspace_directories describe_workspace_directories ****************************** WorkSpaces.Client.describe_workspace_directories(**kwargs) Describes the available directories that are registered with Amazon WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_directories( DirectoryIds=[ 'string', ], WorkspaceDirectoryNames=[ 'string', ], Limit=123, NextToken='string', Filters=[ { 'Name': 'USER_IDENTITY_TYPE'|'WORKSPACE_TYPE', 'Values': [ 'string', ] }, ] ) Parameters: * **DirectoryIds** (*list*) -- The identifiers of the directories. If the value is null, all directories are retrieved. * *(string) --* * **WorkspaceDirectoryNames** (*list*) -- The names of the WorkSpace directories. * *(string) --* * **Limit** (*integer*) -- The maximum number of directories to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **Filters** (*list*) -- The filter condition for the WorkSpaces. * *(dict) --* Describes the filter conditions for the WorkSpaces to return. * **Name** *(string) --* **[REQUIRED]** The name of the WorkSpaces to filter. * **Values** *(list) --* **[REQUIRED]** The values for filtering WorkSpaces * *(string) --* Return type: dict Returns: **Response Syntax** { 'Directories': [ { 'DirectoryId': 'string', 'Alias': 'string', 'DirectoryName': 'string', 'RegistrationCode': 'string', 'SubnetIds': [ 'string', ], 'DnsIpAddresses': [ 'string', ], 'CustomerUserName': 'string', 'IamRoleId': 'string', 'DirectoryType': 'SIMPLE_AD'|'AD_CONNECTOR'|'CUSTOMER_MANAGED'|'AWS_IAM_IDENTITY_CENTER', 'WorkspaceSecurityGroupId': 'string', 'State': 'REGISTERING'|'REGISTERED'|'DEREGISTERING'|'DEREGISTERED'|'ERROR', 'WorkspaceCreationProperties': { 'EnableInternetAccess': True|False, 'DefaultOu': 'string', 'CustomSecurityGroupId': 'string', 'UserEnabledAsLocalAdministrator': True|False, 'EnableMaintenanceMode': True|False, 'InstanceIamRoleArn': 'string' }, 'ipGroupIds': [ 'string', ], 'WorkspaceAccessProperties': { 'DeviceTypeWindows': 'ALLOW'|'DENY', 'DeviceTypeOsx': 'ALLOW'|'DENY', 'DeviceTypeWeb': 'ALLOW'|'DENY', 'DeviceTypeIos': 'ALLOW'|'DENY', 'DeviceTypeAndroid': 'ALLOW'|'DENY', 'DeviceTypeChromeOs': 'ALLOW'|'DENY', 'DeviceTypeZeroClient': 'ALLOW'|'DENY', 'DeviceTypeLinux': 'ALLOW'|'DENY', 'DeviceTypeWorkSpacesThinClient': 'ALLOW'|'DENY', 'AccessEndpointConfig': { 'AccessEndpoints': [ { 'AccessEndpointType': 'STREAMING_WSP', 'VpcEndpointId': 'string' }, ], 'InternetFallbackProtocols': [ 'PCOIP', ] } }, 'Tenancy': 'DEDICATED'|'SHARED', 'SelfservicePermissions': { 'RestartWorkspace': 'ENABLED'|'DISABLED', 'IncreaseVolumeSize': 'ENABLED'|'DISABLED', 'ChangeComputeType': 'ENABLED'|'DISABLED', 'SwitchRunningMode': 'ENABLED'|'DISABLED', 'RebuildWorkspace': 'ENABLED'|'DISABLED' }, 'SamlProperties': { 'Status': 'DISABLED'|'ENABLED'|'ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK', 'UserAccessUrl': 'string', 'RelayStateParameterName': 'string' }, 'CertificateBasedAuthProperties': { 'Status': 'DISABLED'|'ENABLED', 'CertificateAuthorityArn': 'string' }, 'EndpointEncryptionMode': 'STANDARD_TLS'|'FIPS_VALIDATED', 'MicrosoftEntraConfig': { 'TenantId': 'string', 'ApplicationConfigSecretArn': 'string' }, 'WorkspaceDirectoryName': 'string', 'WorkspaceDirectoryDescription': 'string', 'UserIdentityType': 'CUSTOMER_MANAGED'|'AWS_DIRECTORY_SERVICE'|'AWS_IAM_IDENTITY_CENTER', 'WorkspaceType': 'PERSONAL'|'POOLS', 'IDCConfig': { 'InstanceArn': 'string', 'ApplicationArn': 'string' }, 'ActiveDirectoryConfig': { 'DomainName': 'string', 'ServiceAccountSecretArn': 'string' }, 'StreamingProperties': { 'StreamingExperiencePreferredProtocol': 'TCP'|'UDP', 'UserSettings': [ { 'Action': 'CLIPBOARD_COPY_FROM_LOCAL_DEVICE'|'CLIPBOARD_COPY_TO_LOCAL_DEVICE'|'PRINTING_TO_LOCAL_DEVICE'|'SMART_CARD', 'Permission': 'ENABLED'|'DISABLED', 'MaximumLength': 123 }, ], 'StorageConnectors': [ { 'ConnectorType': 'HOME_FOLDER', 'Status': 'ENABLED'|'DISABLED' }, ], 'GlobalAccelerator': { 'Mode': 'ENABLED_AUTO'|'DISABLED', 'PreferredProtocol': 'TCP'|'NONE' } }, 'ErrorMessage': 'string' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **Directories** *(list) --* Information about the directories. * *(dict) --* Describes a directory that is used with Amazon WorkSpaces. * **DirectoryId** *(string) --* The directory identifier. * **Alias** *(string) --* The directory alias. * **DirectoryName** *(string) --* The name of the directory. * **RegistrationCode** *(string) --* The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory. * **SubnetIds** *(list) --* The identifiers of the subnets used with the directory. * *(string) --* * **DnsIpAddresses** *(list) --* The IP addresses of the DNS servers for the directory. * *(string) --* * **CustomerUserName** *(string) --* The user name for the service account. * **IamRoleId** *(string) --* The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf. * **DirectoryType** *(string) --* The directory type. * **WorkspaceSecurityGroupId** *(string) --* The identifier of the security group that is assigned to new WorkSpaces. * **State** *(string) --* The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the "DEREGISTERED" state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered. * **WorkspaceCreationProperties** *(dict) --* The default creation properties for all WorkSpaces in the directory. * **EnableInternetAccess** *(boolean) --* Specifies whether to automatically assign an Elastic public IP address to WorkSpaces in this directory by default. If enabled, the Elastic public IP address allows outbound internet access from your WorkSpaces when you’re using an internet gateway in the Amazon VPC in which your WorkSpaces are located. If you're using a Network Address Translation (NAT) gateway for outbound internet access from your VPC, or if your WorkSpaces are in public subnets and you manually assign them Elastic IP addresses, you should disable this setting. This setting applies to new WorkSpaces that you launch or to existing WorkSpaces that you rebuild. For more information, see Configure a VPC for Amazon WorkSpaces. * **DefaultOu** *(string) --* The organizational unit (OU) in the directory for the WorkSpace machine accounts. * **CustomSecurityGroupId** *(string) --* The identifier of the default security group to apply to WorkSpaces when they are created. For more information, see Security Groups for Your WorkSpaces. * **UserEnabledAsLocalAdministrator** *(boolean) --* Specifies whether WorkSpace users are local administrators on their WorkSpaces. * **EnableMaintenanceMode** *(boolean) --* Specifies whether maintenance mode is enabled for WorkSpaces. For more information, see WorkSpace Maintenance. * **InstanceIamRoleArn** *(string) --* Indicates the IAM role ARN of the instance. * **ipGroupIds** *(list) --* The identifiers of the IP access control groups associated with the directory. * *(string) --* * **WorkspaceAccessProperties** *(dict) --* The devices and operating systems that users can use to access WorkSpaces. * **DeviceTypeWindows** *(string) --* Indicates whether users can use Windows clients to access their WorkSpaces. * **DeviceTypeOsx** *(string) --* Indicates whether users can use macOS clients to access their WorkSpaces. * **DeviceTypeWeb** *(string) --* Indicates whether users can access their WorkSpaces through a web browser. * **DeviceTypeIos** *(string) --* Indicates whether users can use iOS devices to access their WorkSpaces. * **DeviceTypeAndroid** *(string) --* Indicates whether users can use Android and Android- compatible Chrome OS devices to access their WorkSpaces. * **DeviceTypeChromeOs** *(string) --* Indicates whether users can use Chromebooks to access their WorkSpaces. * **DeviceTypeZeroClient** *(string) --* Indicates whether users can use zero client devices to access their WorkSpaces. * **DeviceTypeLinux** *(string) --* Indicates whether users can use Linux clients to access their WorkSpaces. * **DeviceTypeWorkSpacesThinClient** *(string) --* Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client. * **AccessEndpointConfig** *(dict) --* Specifies the configuration for accessing the WorkSpace. * **AccessEndpoints** *(list) --* Indicates a list of access endpoints associated with this directory. * *(dict) --* Describes the access type and endpoint for a WorkSpace. * **AccessEndpointType** *(string) --* Indicates the type of access endpoint. * **VpcEndpointId** *(string) --* Indicates the VPC endpoint to use for access. * **InternetFallbackProtocols** *(list) --* Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available. * *(string) --* * **Tenancy** *(string) --* Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to "DEDICATED". For more information, see Bring Your Own Windows Desktop Images. * **SelfservicePermissions** *(dict) --* The default self-service permissions for WorkSpaces in the directory. * **RestartWorkspace** *(string) --* Specifies whether users can restart their WorkSpace. * **IncreaseVolumeSize** *(string) --* Specifies whether users can increase the volume size of the drives on their WorkSpace. * **ChangeComputeType** *(string) --* Specifies whether users can change the compute type (bundle) for their WorkSpace. * **SwitchRunningMode** *(string) --* Specifies whether users can switch the running mode of their WorkSpace. * **RebuildWorkspace** *(string) --* Specifies whether users can rebuild the operating system of a WorkSpace to its original state. * **SamlProperties** *(dict) --* Describes the enablement status, user access URL, and relay state parameter name that are used for configuring federation with an SAML 2.0 identity provider. * **Status** *(string) --* Indicates the status of SAML 2.0 authentication. These statuses include the following. * If the setting is "DISABLED", end users will be directed to login with their directory credentials. * If the setting is "ENABLED", end users will be directed to login via the user access URL. Users attempting to connect to WorkSpaces from a client application that does not support SAML 2.0 authentication will not be able to connect. * If the setting is "ENABLED_WITH_DIRECTORY_LOGIN_FALLBACK", end users will be directed to login via the user access URL on supported client applications, but will not prevent clients that do not support SAML 2.0 authentication from connecting as if SAML 2.0 authentication was disabled. * **UserAccessUrl** *(string) --* The SAML 2.0 identity provider (IdP) user access URL is the URL a user would navigate to in their web browser in order to federate from the IdP and directly access the application, without any SAML 2.0 service provider (SP) bindings. * **RelayStateParameterName** *(string) --* The relay state parameter name supported by the SAML 2.0 identity provider (IdP). When the end user is redirected to the user access URL from the WorkSpaces client application, this relay state parameter name is appended as a query parameter to the URL along with the relay state endpoint to return the user to the client application session. To use SAML 2.0 authentication with WorkSpaces, the IdP must support IdP-initiated deep linking for the relay state URL. Consult your IdP documentation for more information. * **CertificateBasedAuthProperties** *(dict) --* The certificate-based authentication properties used to authenticate SAML 2.0 Identity Provider (IdP) user identities to Active Directory for WorkSpaces login. * **Status** *(string) --* The status of the certificate-based authentication properties. * **CertificateAuthorityArn** *(string) --* The Amazon Resource Name (ARN) of the Amazon Web Services Certificate Manager Private CA resource. * **EndpointEncryptionMode** *(string) --* Endpoint encryption mode that allows you to configure the specified directory between Standard TLS and FIPS 140-2 validated mode. * **MicrosoftEntraConfig** *(dict) --* Specifies details about Microsoft Entra configurations. * **TenantId** *(string) --* The identifier of the tenant. * **ApplicationConfigSecretArn** *(string) --* The Amazon Resource Name (ARN) of the application config. * **WorkspaceDirectoryName** *(string) --* The name fo the WorkSpace directory. * **WorkspaceDirectoryDescription** *(string) --* The description of the WorkSpace directory * **UserIdentityType** *(string) --* Indicates the identity type of the specifired user. * **WorkspaceType** *(string) --* Indicates whether the directory's WorkSpace type is personal or pools. * **IDCConfig** *(dict) --* Specifies details about identity center configurations. * **InstanceArn** *(string) --* The Amazon Resource Name (ARN) of the identity center instance. * **ApplicationArn** *(string) --* The Amazon Resource Name (ARN) of the application. * **ActiveDirectoryConfig** *(dict) --* Information about the Active Directory config. * **DomainName** *(string) --* The name of the domain. * **ServiceAccountSecretArn** *(string) --* Indicates the secret ARN on the service account. * **StreamingProperties** *(dict) --* The streaming properties to configure. * **StreamingExperiencePreferredProtocol** *(string) --* Indicates the type of preferred protocol for the streaming experience. * **UserSettings** *(list) --* Indicates the permission settings asscoiated with the user. * *(dict) --* Information about the user's permission settings. * **Action** *(string) --* Indicates the type of action. * **Permission** *(string) --* Indicates if the setting is enabled or disabled. * **MaximumLength** *(integer) --* Indicates the maximum character length for the specified user setting. * **StorageConnectors** *(list) --* Indicates the storage connector used * *(dict) --* Describes the storage connector. * **ConnectorType** *(string) --* The type of connector used to save user files. * **Status** *(string) --* Indicates if the storage connetor is enabled or disabled. * **GlobalAccelerator** *(dict) --* Indicates the Global Accelerator properties. * **Mode** *(string) --* Indicates if Global Accelerator for directory is enabled or disabled. * **PreferredProtocol** *(string) --* Indicates the preferred protocol for Global Accelerator. * **ErrorMessage** *(string) --* The error message returned. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / delete_workspace_image delete_workspace_image ********************** WorkSpaces.Client.delete_workspace_image(**kwargs) Deletes the specified image from your account. To delete an image, you must first delete any bundles that are associated with the image and unshare the image if it is shared with other accounts. See also: AWS API Documentation **Request Syntax** response = client.delete_workspace_image( ImageId='string' ) Parameters: **ImageId** (*string*) -- **[REQUIRED]** The identifier of the image. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceAssociatedException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / update_connect_client_add_in update_connect_client_add_in **************************** WorkSpaces.Client.update_connect_client_add_in(**kwargs) Updates a Amazon Connect client add-in. Use this action to update the name and endpoint URL of a Amazon Connect client add-in. See also: AWS API Documentation **Request Syntax** response = client.update_connect_client_add_in( AddInId='string', ResourceId='string', Name='string', URL='string' ) Parameters: * **AddInId** (*string*) -- **[REQUIRED]** The identifier of the client add-in to update. * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier for which the client add-in is configured. * **Name** (*string*) -- The name of the client add-in. * **URL** (*string*) -- The endpoint URL of the Amazon Connect client add-in. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / start_workspaces_pool start_workspaces_pool ********************* WorkSpaces.Client.start_workspaces_pool(**kwargs) Starts the specified pool. You cannot start a pool unless it has a running mode of "AutoStop" and a state of "STOPPED". See also: AWS API Documentation **Request Syntax** response = client.start_workspaces_pool( PoolId='string' ) Parameters: **PoolId** (*string*) -- **[REQUIRED]** The identifier of the pool. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / import_client_branding import_client_branding ********************** WorkSpaces.Client.import_client_branding(**kwargs) Imports client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you import client branding, the default branding experience for the specified platform type is replaced with the imported experience Note: * You must specify at least one platform type when importing client branding. * You can import up to 6 MB of data with each request. If your request exceeds this limit, you can import client branding for different platform types using separate requests. * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify only one parameter for each platform type, but not both. * Imported data can take up to a minute to appear in the WorkSpaces client. See also: AWS API Documentation **Request Syntax** response = client.import_client_branding( ResourceId='string', DeviceTypeWindows={ 'Logo': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, DeviceTypeOsx={ 'Logo': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, DeviceTypeAndroid={ 'Logo': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, DeviceTypeIos={ 'Logo': b'bytes', 'Logo2x': b'bytes', 'Logo3x': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, DeviceTypeLinux={ 'Logo': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, DeviceTypeWeb={ 'Logo': b'bytes', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier of the WorkSpace for which you want to import client branding. * **DeviceTypeWindows** (*dict*) -- The branding information to import for Windows devices. * **Logo** *(bytes) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeOsx** (*dict*) -- The branding information to import for macOS devices. * **Logo** *(bytes) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeAndroid** (*dict*) -- The branding information to import for Android devices. * **Logo** *(bytes) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeIos** (*dict*) -- The branding information to import for iOS devices. * **Logo** *(bytes) --* The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a ".png" file. * **Logo2x** *(bytes) --* The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **Logo3x** *(bytes) --* The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x). The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeLinux** (*dict*) -- The branding information to import for Linux devices. * **Logo** *(bytes) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeWeb** (*dict*) -- The branding information to import for web access. * **Logo** *(bytes) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* Return type: dict Returns: **Response Syntax** { 'DeviceTypeWindows': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeOsx': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeAndroid': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeIos': { 'LogoUrl': 'string', 'Logo2xUrl': 'string', 'Logo3xUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeLinux': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } }, 'DeviceTypeWeb': { 'LogoUrl': 'string', 'SupportEmail': 'string', 'SupportLink': 'string', 'ForgotPasswordLink': 'string', 'LoginMessage': { 'string': 'string' } } } **Response Structure** * *(dict) --* * **DeviceTypeWindows** *(dict) --* The branding information configured for Windows devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeOsx** *(dict) --* The branding information configured for macOS devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeAndroid** *(dict) --* The branding information configured for Android devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeIos** *(dict) --* The branding information configured for iOS devices. * **LogoUrl** *(string) --* The logo. This is the standard-resolution display that has a 1:1 pixel density (or @1x), where one pixel is equal to one point. The only image format accepted is a binary data object that is converted from a ".png" file. * **Logo2xUrl** *(string) --* The @2x version of the logo. This is the higher resolution display that offers a scale factor of 2.0 (or @2x). The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **Logo3xUrl** *(string) --* The @3x version of the logo. This is the higher resolution display that offers a scale factor of 3.0 (or @3x).The only image format accepted is a binary data object that is converted from a ".png" file. Note: For more information about iOS image size and resolution, see Image Size and Resolution in the *Apple Human Interface Guidelines*. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeLinux** *(dict) --* The branding information configured for Linux devices. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* * **DeviceTypeWeb** *(dict) --* The branding information configured for web access. * **LogoUrl** *(string) --* The logo. The only image format accepted is a binary data object that is converted from a ".png" file. * **SupportEmail** *(string) --* The support email. The company's customer support email address. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive. You can specify one parameter for each platform type, but not both. * The default email is "workspaces-feedback@amazon.com". * **SupportLink** *(string) --* The support link. The link for the company's customer support page for their WorkSpace. Note: * In each platform type, the "SupportEmail" and "SupportLink" parameters are mutually exclusive.You can specify one parameter for each platform type, but not both. * The default support link is "workspaces- feedback@amazon.com". * **ForgotPasswordLink** *(string) --* The forgotten password link. This is the web address that users can go to if they forget the password for their WorkSpace. * **LoginMessage** *(dict) --* The login message. Specified as a key value pair, in which the key is a locale and the value is the localized message for that locale. The only key supported is "en_US". The HTML tags supported include the following: "a, b, blockquote, br, cite, code, dd, dl, dt, div, em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u, ul". * *(string) --* * *(string) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / delete_account_link_invitation delete_account_link_invitation ****************************** WorkSpaces.Client.delete_account_link_invitation(**kwargs) Deletes the account link invitation. See also: AWS API Documentation **Request Syntax** response = client.delete_account_link_invitation( LinkId='string', ClientToken='string' ) Parameters: * **LinkId** (*string*) -- **[REQUIRED]** The identifier of the account link. * **ClientToken** (*string*) -- A string of up to 64 ASCII characters that Amazon WorkSpaces uses to ensure idempotent creation. Return type: dict Returns: **Response Syntax** { 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } } **Response Structure** * *(dict) --* * **AccountLink** *(dict) --* Information about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. **Exceptions** * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ConflictException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / describe_connection_alias_permissions describe_connection_alias_permissions ************************************* WorkSpaces.Client.describe_connection_alias_permissions(**kwargs) Describes the permissions that the owner of a connection alias has granted to another Amazon Web Services account for the specified connection alias. For more information, see Cross-Region Redirection for Amazon WorkSpaces. See also: AWS API Documentation **Request Syntax** response = client.describe_connection_alias_permissions( AliasId='string', NextToken='string', MaxResults=123 ) Parameters: * **AliasId** (*string*) -- **[REQUIRED]** The identifier of the connection alias. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. * **MaxResults** (*integer*) -- The maximum number of results to return. Return type: dict Returns: **Response Syntax** { 'AliasId': 'string', 'ConnectionAliasPermissions': [ { 'SharedAccountId': 'string', 'AllowAssociation': True|False }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **AliasId** *(string) --* The identifier of the connection alias. * **ConnectionAliasPermissions** *(list) --* The permissions associated with a connection alias. * *(dict) --* Describes the permissions for a connection alias. Connection aliases are used for cross-Region redirection. For more information, see Cross-Region Redirection for Amazon WorkSpaces. * **SharedAccountId** *(string) --* The identifier of the Amazon Web Services account that the connection alias is shared with. * **AllowAssociation** *(boolean) --* Indicates whether the specified Amazon Web Services account is allowed to associate the connection alias with a directory. * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / delete_connect_client_add_in delete_connect_client_add_in **************************** WorkSpaces.Client.delete_connect_client_add_in(**kwargs) Deletes a client-add-in for Amazon Connect that is configured within a directory. See also: AWS API Documentation **Request Syntax** response = client.delete_connect_client_add_in( AddInId='string', ResourceId='string' ) Parameters: * **AddInId** (*string*) -- **[REQUIRED]** The identifier of the client add-in to delete. * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier for which the client add-in is configured. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / list_available_management_cidr_ranges list_available_management_cidr_ranges ************************************* WorkSpaces.Client.list_available_management_cidr_ranges(**kwargs) Retrieves a list of IP address ranges, specified as IPv4 CIDR blocks, that you can use for the network management interface when you enable Bring Your Own License (BYOL). This operation can be run only by Amazon Web Services accounts that are enabled for BYOL. If your account isn't enabled for BYOL, you'll receive an "AccessDeniedException" error. The management network interface is connected to a secure Amazon WorkSpaces management network. It is used for interactive streaming of the WorkSpace desktop to Amazon WorkSpaces clients, and to allow Amazon WorkSpaces to manage the WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.list_available_management_cidr_ranges( ManagementCidrRangeConstraint='string', MaxResults=123, NextToken='string' ) Parameters: * **ManagementCidrRangeConstraint** (*string*) -- **[REQUIRED]** The IP address range to search. Specify an IP address range that is compatible with your network and in CIDR notation (that is, specify the range as an IPv4 CIDR block). * **MaxResults** (*integer*) -- The maximum number of items to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'ManagementCidrRanges': [ 'string', ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **ManagementCidrRanges** *(list) --* The list of available IP address ranges, specified as IPv4 CIDR blocks. * *(string) --* * **NextToken** *(string) --* The token to use to retrieve the next page of results. This value is null when there are no more results to return. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_bundle_associations describe_bundle_associations **************************** WorkSpaces.Client.describe_bundle_associations(**kwargs) Describes the associations between the applications and the specified bundle. See also: AWS API Documentation **Request Syntax** response = client.describe_bundle_associations( BundleId='string', AssociatedResourceTypes=[ 'APPLICATION', ] ) Parameters: * **BundleId** (*string*) -- **[REQUIRED]** The identifier of the bundle. * **AssociatedResourceTypes** (*list*) -- **[REQUIRED]** The resource types of the associated resource. * *(string) --* Return type: dict Returns: **Response Syntax** { 'Associations': [ { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'BundleId': 'string', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' } }, ] } **Response Structure** * *(dict) --* * **Associations** *(list) --* List of information about the specified associations. * *(dict) --* Describes the association between an application and a bundle resource. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource type of the associated resources. * **BundleId** *(string) --* The identifier of the bundle. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the bundle resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / modify_workspace_access_properties modify_workspace_access_properties ********************************** WorkSpaces.Client.modify_workspace_access_properties(**kwargs) Specifies which devices and operating systems users can use to access their WorkSpaces. For more information, see Control Device Access. See also: AWS API Documentation **Request Syntax** response = client.modify_workspace_access_properties( ResourceId='string', WorkspaceAccessProperties={ 'DeviceTypeWindows': 'ALLOW'|'DENY', 'DeviceTypeOsx': 'ALLOW'|'DENY', 'DeviceTypeWeb': 'ALLOW'|'DENY', 'DeviceTypeIos': 'ALLOW'|'DENY', 'DeviceTypeAndroid': 'ALLOW'|'DENY', 'DeviceTypeChromeOs': 'ALLOW'|'DENY', 'DeviceTypeZeroClient': 'ALLOW'|'DENY', 'DeviceTypeLinux': 'ALLOW'|'DENY', 'DeviceTypeWorkSpacesThinClient': 'ALLOW'|'DENY', 'AccessEndpointConfig': { 'AccessEndpoints': [ { 'AccessEndpointType': 'STREAMING_WSP', 'VpcEndpointId': 'string' }, ], 'InternetFallbackProtocols': [ 'PCOIP', ] } } ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The identifier of the directory. * **WorkspaceAccessProperties** (*dict*) -- **[REQUIRED]** The device types and operating systems to enable or disable for access. * **DeviceTypeWindows** *(string) --* Indicates whether users can use Windows clients to access their WorkSpaces. * **DeviceTypeOsx** *(string) --* Indicates whether users can use macOS clients to access their WorkSpaces. * **DeviceTypeWeb** *(string) --* Indicates whether users can access their WorkSpaces through a web browser. * **DeviceTypeIos** *(string) --* Indicates whether users can use iOS devices to access their WorkSpaces. * **DeviceTypeAndroid** *(string) --* Indicates whether users can use Android and Android- compatible Chrome OS devices to access their WorkSpaces. * **DeviceTypeChromeOs** *(string) --* Indicates whether users can use Chromebooks to access their WorkSpaces. * **DeviceTypeZeroClient** *(string) --* Indicates whether users can use zero client devices to access their WorkSpaces. * **DeviceTypeLinux** *(string) --* Indicates whether users can use Linux clients to access their WorkSpaces. * **DeviceTypeWorkSpacesThinClient** *(string) --* Indicates whether users can access their WorkSpaces through a WorkSpaces Thin Client. * **AccessEndpointConfig** *(dict) --* Specifies the configuration for accessing the WorkSpace. * **AccessEndpoints** *(list) --* **[REQUIRED]** Indicates a list of access endpoints associated with this directory. * *(dict) --* Describes the access type and endpoint for a WorkSpace. * **AccessEndpointType** *(string) --* Indicates the type of access endpoint. * **VpcEndpointId** *(string) --* Indicates the VPC endpoint to use for access. * **InternetFallbackProtocols** *(list) --* Indicates a list of protocols that fallback to using the public Internet when streaming over a VPC endpoint is not available. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidParameterCombinationExcepti on" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / describe_workspaces_pools describe_workspaces_pools ************************* WorkSpaces.Client.describe_workspaces_pools(**kwargs) Describes the specified WorkSpaces Pools. See also: AWS API Documentation **Request Syntax** response = client.describe_workspaces_pools( PoolIds=[ 'string', ], Filters=[ { 'Name': 'PoolName', 'Values': [ 'string', ], 'Operator': 'EQUALS'|'NOTEQUALS'|'CONTAINS'|'NOTCONTAINS' }, ], Limit=123, NextToken='string' ) Parameters: * **PoolIds** (*list*) -- The identifier of the WorkSpaces Pools. * *(string) --* * **Filters** (*list*) -- The filter conditions for the WorkSpaces Pool to return. * *(dict) --* Describes the filter conditions for WorkSpaces Pools to return. * **Name** *(string) --* **[REQUIRED]** The name of the pool to filter. * **Values** *(list) --* **[REQUIRED]** The values for filtering WorkSpaces Pools. * *(string) --* * **Operator** *(string) --* **[REQUIRED]** The operator values for filtering WorkSpaces Pools. * **Limit** (*integer*) -- The maximum number of items to return. * **NextToken** (*string*) -- If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. Return type: dict Returns: **Response Syntax** { 'WorkspacesPools': [ { 'PoolId': 'string', 'PoolArn': 'string', 'CapacityStatus': { 'AvailableUserSessions': 123, 'DesiredUserSessions': 123, 'ActualUserSessions': 123, 'ActiveUserSessions': 123 }, 'PoolName': 'string', 'Description': 'string', 'State': 'CREATING'|'DELETING'|'RUNNING'|'STARTING'|'STOPPED'|'STOPPING'|'UPDATING', 'CreatedAt': datetime(2015, 1, 1), 'BundleId': 'string', 'DirectoryId': 'string', 'Errors': [ { 'ErrorCode': 'IAM_SERVICE_ROLE_IS_MISSING'|'IAM_SERVICE_ROLE_MISSING_ENI_DESCRIBE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_CREATE_ACTION'|'IAM_SERVICE_ROLE_MISSING_ENI_DELETE_ACTION'|'NETWORK_INTERFACE_LIMIT_EXCEEDED'|'INTERNAL_SERVICE_ERROR'|'MACHINE_ROLE_IS_MISSING'|'STS_DISABLED_IN_REGION'|'SUBNET_HAS_INSUFFICIENT_IP_ADDRESSES'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SUBNET_ACTION'|'SUBNET_NOT_FOUND'|'IMAGE_NOT_FOUND'|'INVALID_SUBNET_CONFIGURATION'|'SECURITY_GROUPS_NOT_FOUND'|'IGW_NOT_ATTACHED'|'IAM_SERVICE_ROLE_MISSING_DESCRIBE_SECURITY_GROUPS_ACTION'|'WORKSPACES_POOL_STOPPED'|'WORKSPACES_POOL_INSTANCE_PROVISIONING_FAILURE'|'DOMAIN_JOIN_ERROR_FILE_NOT_FOUND'|'DOMAIN_JOIN_ERROR_ACCESS_DENIED'|'DOMAIN_JOIN_ERROR_LOGON_FAILURE'|'DOMAIN_JOIN_ERROR_INVALID_PARAMETER'|'DOMAIN_JOIN_ERROR_MORE_DATA'|'DOMAIN_JOIN_ERROR_NO_SUCH_DOMAIN'|'DOMAIN_JOIN_ERROR_NOT_SUPPORTED'|'DOMAIN_JOIN_NERR_INVALID_WORKGROUP_NAME'|'DOMAIN_JOIN_NERR_WORKSTATION_NOT_STARTED'|'DOMAIN_JOIN_ERROR_DS_MACHINE_ACCOUNT_QUOTA_EXCEEDED'|'DOMAIN_JOIN_NERR_PASSWORD_EXPIRED'|'DOMAIN_JOIN_INTERNAL_SERVICE_ERROR'|'DOMAIN_JOIN_ERROR_SECRET_ACTION_PERMISSION_IS_MISSING'|'DOMAIN_JOIN_ERROR_SECRET_DECRYPTION_FAILURE'|'DOMAIN_JOIN_ERROR_SECRET_STATE_INVALID'|'DOMAIN_JOIN_ERROR_SECRET_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_VALUE_KEY_NOT_FOUND'|'DOMAIN_JOIN_ERROR_SECRET_INVALID'|'BUNDLE_NOT_FOUND'|'DIRECTORY_NOT_FOUND'|'INSUFFICIENT_PERMISSIONS_ERROR'|'DEFAULT_OU_IS_MISSING', 'ErrorMessage': 'string' }, ], 'ApplicationSettings': { 'Status': 'DISABLED'|'ENABLED', 'SettingsGroup': 'string', 'S3BucketName': 'string' }, 'TimeoutSettings': { 'DisconnectTimeoutInSeconds': 123, 'IdleDisconnectTimeoutInSeconds': 123, 'MaxUserDurationInSeconds': 123 }, 'RunningMode': 'AUTO_STOP'|'ALWAYS_ON' }, ], 'NextToken': 'string' } **Response Structure** * *(dict) --* * **WorkspacesPools** *(list) --* Information about the WorkSpaces Pools. * *(dict) --* Describes a pool of WorkSpaces. * **PoolId** *(string) --* The identifier of a pool. * **PoolArn** *(string) --* The Amazon Resource Name (ARN) for the pool. * **CapacityStatus** *(dict) --* The capacity status for the pool * **AvailableUserSessions** *(integer) --* The number of user sessions currently available for streaming from your pool. AvailableUserSessions = ActualUserSessions - ActiveUserSessions * **DesiredUserSessions** *(integer) --* The total number of sessions slots that are either running or pending. This represents the total number of concurrent streaming sessions your pool can support in a steady state. * **ActualUserSessions** *(integer) --* The total number of user sessions that are available for streaming or are currently streaming in your pool. ActualUserSessions = AvailableUserSessions + ActiveUserSessions * **ActiveUserSessions** *(integer) --* The number of user sessions currently being used for your pool. * **PoolName** *(string) --* The name of the pool. * **Description** *(string) --* The description of the pool. * **State** *(string) --* The current state of the pool. * **CreatedAt** *(datetime) --* The time the pool was created. * **BundleId** *(string) --* The identifier of the bundle used by the pool. * **DirectoryId** *(string) --* The identifier of the directory used by the pool. * **Errors** *(list) --* The pool errors. * *(dict) --* Describes a pool error. * **ErrorCode** *(string) --* The error code. * **ErrorMessage** *(string) --* The error message. * **ApplicationSettings** *(dict) --* The persistent application settings for users of the pool. * **Status** *(string) --* Specifies whether persistent application settings are enabled for users during their pool sessions. * **SettingsGroup** *(string) --* The path prefix for the S3 bucket where users’ persistent application settings are stored. * **S3BucketName** *(string) --* The S3 bucket where users’ persistent application settings are stored. When persistent application settings are enabled for the first time for an account in an Amazon Web Services Region, an S3 bucket is created. The bucket is unique to the Amazon Web Services account and the Region. * **TimeoutSettings** *(dict) --* The amount of time that a pool session remains active after users disconnect. If they try to reconnect to the pool session after a disconnection or network interruption within this time interval, they are connected to their previous session. Otherwise, they are connected to a new session with a new pool instance. * **DisconnectTimeoutInSeconds** *(integer) --* Specifies the amount of time, in seconds, that a streaming session remains active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within the time set, they are connected to their previous session. Otherwise, they are connected to a new session with a new streaming instance. * **IdleDisconnectTimeoutInSeconds** *(integer) --* The amount of time in seconds a connection will stay active while idle. * **MaxUserDurationInSeconds** *(integer) --* Specifies the maximum amount of time, in seconds, that a streaming session can remain active. If users are still connected to a streaming instance five minutes before this limit is reached, they are prompted to save any open documents before being disconnected. After this time elapses, the instance is terminated and replaced by a new instance. * **RunningMode** *(string) --* The running mode of the pool. * **NextToken** *(string) --* If you received a "NextToken" from a previous call that was paginated, provide this token to receive the next set of results. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / reboot_workspaces reboot_workspaces ***************** WorkSpaces.Client.reboot_workspaces(**kwargs) Reboots the specified WorkSpaces. You cannot reboot a WorkSpace unless its state is "AVAILABLE", "UNHEALTHY", or "REBOOTING". Reboot a WorkSpace in the "REBOOTING" state only if your WorkSpace has been stuck in the "REBOOTING" state for over 20 minutes. This operation is asynchronous and returns before the WorkSpaces have rebooted. See also: AWS API Documentation **Request Syntax** response = client.reboot_workspaces( RebootWorkspaceRequests=[ { 'WorkspaceId': 'string' }, ] ) Parameters: **RebootWorkspaceRequests** (*list*) -- **[REQUIRED]** The WorkSpaces to reboot. You can specify up to 25 WorkSpaces. * *(dict) --* Describes the information used to reboot a WorkSpace. * **WorkspaceId** *(string) --* **[REQUIRED]** The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'FailedRequests': [ { 'WorkspaceId': 'string', 'ErrorCode': 'string', 'ErrorMessage': 'string' }, ] } **Response Structure** * *(dict) --* * **FailedRequests** *(list) --* Information about the WorkSpaces that could not be rebooted. * *(dict) --* Describes a WorkSpace that could not be rebooted. ( RebootWorkspaces), rebuilt ( RebuildWorkspaces), restored ( RestoreWorkspace), terminated ( TerminateWorkspaces), started ( StartWorkspaces), or stopped ( StopWorkspaces). * **WorkspaceId** *(string) --* The identifier of the WorkSpace. * **ErrorCode** *(string) --* The error code that is returned if the WorkSpace cannot be rebooted. * **ErrorMessage** *(string) --* The text of the error message that is returned if the WorkSpace cannot be rebooted. **Exceptions** * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / modify_workspace_state modify_workspace_state ********************** WorkSpaces.Client.modify_workspace_state(**kwargs) Sets the state of the specified WorkSpace. To maintain a WorkSpace without being interrupted, set the WorkSpace state to "ADMIN_MAINTENANCE". WorkSpaces in this state do not respond to requests to reboot, stop, start, rebuild, or restore. An AutoStop WorkSpace in this state is not stopped. Users cannot log into a WorkSpace in the "ADMIN_MAINTENANCE" state. See also: AWS API Documentation **Request Syntax** response = client.modify_workspace_state( WorkspaceId='string', WorkspaceState='AVAILABLE'|'ADMIN_MAINTENANCE' ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **WorkspaceState** (*string*) -- **[REQUIRED]** The WorkSpace state. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" WorkSpaces / Client / revoke_ip_rules revoke_ip_rules *************** WorkSpaces.Client.revoke_ip_rules(**kwargs) Removes one or more rules from the specified IP access control group. See also: AWS API Documentation **Request Syntax** response = client.revoke_ip_rules( GroupId='string', UserRules=[ 'string', ] ) Parameters: * **GroupId** (*string*) -- **[REQUIRED]** The identifier of the group. * **UserRules** (*list*) -- **[REQUIRED]** The rules to remove from the group. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_workspace_associations describe_workspace_associations ******************************* WorkSpaces.Client.describe_workspace_associations(**kwargs) Describes the associations betweens applications and the specified WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_associations( WorkspaceId='string', AssociatedResourceTypes=[ 'APPLICATION', ] ) Parameters: * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. * **AssociatedResourceTypes** (*list*) -- **[REQUIRED]** The resource types of the associated resources. * *(string) --* Return type: dict Returns: **Response Syntax** { 'Associations': [ { 'AssociatedResourceId': 'string', 'AssociatedResourceType': 'APPLICATION', 'Created': datetime(2015, 1, 1), 'LastUpdatedTime': datetime(2015, 1, 1), 'State': 'PENDING_INSTALL'|'PENDING_INSTALL_DEPLOYMENT'|'PENDING_UNINSTALL'|'PENDING_UNINSTALL_DEPLOYMENT'|'INSTALLING'|'UNINSTALLING'|'ERROR'|'COMPLETED'|'REMOVED', 'StateReason': { 'ErrorCode': 'ValidationError.InsufficientDiskSpace'|'ValidationError.InsufficientMemory'|'ValidationError.UnsupportedOperatingSystem'|'DeploymentError.InternalServerError'|'DeploymentError.WorkspaceUnreachable', 'ErrorMessage': 'string' }, 'WorkspaceId': 'string' }, ] } **Response Structure** * *(dict) --* * **Associations** *(list) --* List of information about the specified associations. * *(dict) --* Describes the association between an application and a WorkSpace resource. * **AssociatedResourceId** *(string) --* The identifier of the associated resource. * **AssociatedResourceType** *(string) --* The resource types of the associated resource. * **Created** *(datetime) --* The time the association is created. * **LastUpdatedTime** *(datetime) --* The time the association status was last updated. * **State** *(string) --* The status of the WorkSpace resource association. * **StateReason** *(dict) --* The reason the association deployment failed. * **ErrorCode** *(string) --* The error code of the association deployment failure. * **ErrorMessage** *(string) --* The error message of the association deployment failure. * **WorkspaceId** *(string) --* The identifier of the WorkSpace. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" WorkSpaces / Client / delete_client_branding delete_client_branding ********************** WorkSpaces.Client.delete_client_branding(**kwargs) Deletes customized client branding. Client branding allows you to customize your WorkSpace's client login portal. You can tailor your login portal company logo, the support email address, support link, link to reset password, and a custom message for users trying to sign in. After you delete your customized client branding, your login portal reverts to the default client branding. See also: AWS API Documentation **Request Syntax** response = client.delete_client_branding( ResourceId='string', Platforms=[ 'DeviceTypeWindows'|'DeviceTypeOsx'|'DeviceTypeAndroid'|'DeviceTypeIos'|'DeviceTypeLinux'|'DeviceTypeWeb', ] ) Parameters: * **ResourceId** (*string*) -- **[REQUIRED]** The directory identifier of the WorkSpace for which you want to delete client branding. * **Platforms** (*list*) -- **[REQUIRED]** The device type for which you want to delete client branding. * *(string) --* Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / reject_account_link_invitation reject_account_link_invitation ****************************** WorkSpaces.Client.reject_account_link_invitation(**kwargs) Rejects the account link invitation. See also: AWS API Documentation **Request Syntax** response = client.reject_account_link_invitation( LinkId='string', ClientToken='string' ) Parameters: * **LinkId** (*string*) -- **[REQUIRED]** The identifier of the account link * **ClientToken** (*string*) -- The client token of the account link invitation to reject. Return type: dict Returns: **Response Syntax** { 'AccountLink': { 'AccountLinkId': 'string', 'AccountLinkStatus': 'LINKED'|'LINKING_FAILED'|'LINK_NOT_FOUND'|'PENDING_ACCEPTANCE_BY_TARGET_ACCOUNT'|'REJECTED', 'SourceAccountId': 'string', 'TargetAccountId': 'string' } } **Response Structure** * *(dict) --* * **AccountLink** *(dict) --* Information about the account link. * **AccountLinkId** *(string) --* The identifier of the account link. * **AccountLinkStatus** *(string) --* The status of the account link. * **SourceAccountId** *(string) --* The identifier of the source account. * **TargetAccountId** *(string) --* The identifier of the target account. **Exceptions** * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.ValidationException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.ConflictException" * "WorkSpaces.Client.exceptions.InternalServerException" WorkSpaces / Client / create_workspace_image create_workspace_image ********************** WorkSpaces.Client.create_workspace_image(**kwargs) Creates a new WorkSpace image from an existing WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.create_workspace_image( Name='string', Description='string', WorkspaceId='string', Tags=[ { 'Key': 'string', 'Value': 'string' }, ] ) Parameters: * **Name** (*string*) -- **[REQUIRED]** The name of the new WorkSpace image. * **Description** (*string*) -- **[REQUIRED]** The description of the new WorkSpace image. * **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the source WorkSpace * **Tags** (*list*) -- The tags that you want to add to the new WorkSpace image. To add tags when you're creating the image, you must create an IAM policy that grants your IAM user permission to use "workspaces:CreateTags". * *(dict) --* Describes a tag. * **Key** *(string) --* **[REQUIRED]** The key of the tag. * **Value** *(string) --* The value of the tag. Return type: dict Returns: **Response Syntax** { 'ImageId': 'string', 'Name': 'string', 'Description': 'string', 'OperatingSystem': { 'Type': 'WINDOWS'|'LINUX' }, 'State': 'AVAILABLE'|'PENDING'|'ERROR', 'RequiredTenancy': 'DEFAULT'|'DEDICATED', 'Created': datetime(2015, 1, 1), 'OwnerAccountId': 'string' } **Response Structure** * *(dict) --* * **ImageId** *(string) --* The identifier of the new WorkSpace image. * **Name** *(string) --* The name of the image. * **Description** *(string) --* The description of the image. * **OperatingSystem** *(dict) --* The operating system that the image is running. * **Type** *(string) --* The operating system. * **State** *(string) --* The availability status of the image. * **RequiredTenancy** *(string) --* Specifies whether the image is running on dedicated hardware. When Bring Your Own License (BYOL) is enabled, this value is set to DEDICATED. For more information, see Bring Your Own Windows Desktop Images.. * **Created** *(datetime) --* The date when the image was created. * **OwnerAccountId** *(string) --* The identifier of the Amazon Web Services account that owns the image. **Exceptions** * "WorkSpaces.Client.exceptions.ResourceLimitExceededException" * "WorkSpaces.Client.exceptions.ResourceAlreadyExistsException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.InvalidResourceStateException" * "WorkSpaces.Client.exceptions.AccessDeniedException" * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" WorkSpaces / Client / terminate_workspaces_pool_session terminate_workspaces_pool_session ********************************* WorkSpaces.Client.terminate_workspaces_pool_session(**kwargs) Terminates the pool session. See also: AWS API Documentation **Request Syntax** response = client.terminate_workspaces_pool_session( SessionId='string' ) Parameters: **SessionId** (*string*) -- **[REQUIRED]** The identifier of the pool session. Return type: dict Returns: **Response Syntax** {} **Response Structure** * *(dict) --* **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.OperationNotSupportedException" * "WorkSpaces.Client.exceptions.OperationInProgressException" * "WorkSpaces.Client.exceptions.AccessDeniedException" WorkSpaces / Client / describe_workspace_snapshots describe_workspace_snapshots **************************** WorkSpaces.Client.describe_workspace_snapshots(**kwargs) Describes the snapshots for the specified WorkSpace. See also: AWS API Documentation **Request Syntax** response = client.describe_workspace_snapshots( WorkspaceId='string' ) Parameters: **WorkspaceId** (*string*) -- **[REQUIRED]** The identifier of the WorkSpace. Return type: dict Returns: **Response Syntax** { 'RebuildSnapshots': [ { 'SnapshotTime': datetime(2015, 1, 1) }, ], 'RestoreSnapshots': [ { 'SnapshotTime': datetime(2015, 1, 1) }, ] } **Response Structure** * *(dict) --* * **RebuildSnapshots** *(list) --* Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume. * *(dict) --* Describes a snapshot. * **SnapshotTime** *(datetime) --* The time when the snapshot was created. * **RestoreSnapshots** *(list) --* Information about the snapshots that can be used to restore a WorkSpace. These snapshots include both the root volume and the user volume. * *(dict) --* Describes a snapshot. * **SnapshotTime** *(datetime) --* The time when the snapshot was created. **Exceptions** * "WorkSpaces.Client.exceptions.InvalidParameterValuesException" * "WorkSpaces.Client.exceptions.ResourceNotFoundException" * "WorkSpaces.Client.exceptions.AccessDeniedException"