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
            }
        },
    ],
    '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 being used for pool sessions. This only applies to multi-session pools.

          • 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 session slots that are available for a pool of WorkSpaces.

          • ActiveUserSessions (integer) –

            The number of user sessions currently being used for pool sessions. This only applies to multi-session pools.

        • 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.

    • 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