ChimeSDKIdentity

Client

class ChimeSDKIdentity.Client

A low-level client representing Amazon Chime SDK Identity

The Amazon Chime SDK Identity APIs in this section allow software developers to create and manage unique instances of their messaging applications. These APIs provide the overarching framework for creating and sending messages. For more information about the identity APIs, refer to Amazon Chime SDK identity .

client = session.create_client('chime-sdk-identity')

These are the available methods:

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.
create_app_instance(**kwargs)

Creates an Amazon Chime SDK messaging AppInstance under an AWS account. Only SDK messaging customers use this API. CreateAppInstance supports idempotency behavior as described in the AWS API Standard.

identity

See also: AWS API Documentation

Request Syntax

response = client.create_app_instance(
    Name='string',
    Metadata='string',
    ClientRequestToken='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • Name (string) --

    [REQUIRED]

    The name of the AppInstance .

  • Metadata (string) -- The metadata of the AppInstance . Limited to a 1KB string in UTF-8.
  • ClientRequestToken (string) --

    [REQUIRED]

    The ClientRequestToken of the AppInstance .

    This field is autopopulated if not provided.

  • Tags (list) --

    Tags assigned to the AppInstanceUser .

    • (dict) --

      Describes a tag applied to a resource.

      • Key (string) -- [REQUIRED]

        The key of the tag.

      • Value (string) -- [REQUIRED]

        The value of the tag.

Return type

dict

Returns

Response Syntax

{
    'AppInstanceArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The Amazon Resource Number (ARN) of the AppInstance .

Exceptions

create_app_instance_admin(**kwargs)

Promotes an AppInstanceUser to an AppInstanceAdmin . The promoted user can perform the following actions.

  • ChannelModerator actions across all channels in the AppInstance .
  • DeleteChannelMessage actions.

Only an AppInstanceUser can be promoted to an AppInstanceAdmin role.

See also: AWS API Documentation

Request Syntax

response = client.create_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
Parameters
  • AppInstanceAdminArn (string) --

    [REQUIRED]

    The ARN of the administrator of the current AppInstance .

  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

Return type

dict

Returns

Response Syntax

{
    'AppInstanceAdmin': {
        'Arn': 'string',
        'Name': 'string'
    },
    'AppInstanceArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceAdmin (dict) --

      The name and ARN of the admin for the AppInstance .

      • Arn (string) --

        The ARN in an Identity.

      • Name (string) --

        The name in an Identity.

    • AppInstanceArn (string) --

      The ARN of the of the admin for the AppInstance .

Exceptions

create_app_instance_user(**kwargs)

Creates a user under an Amazon Chime AppInstance . The request consists of a unique appInstanceUserId and Name for that user.

See also: AWS API Documentation

Request Syntax

response = client.create_app_instance_user(
    AppInstanceArn='string',
    AppInstanceUserId='string',
    Name='string',
    Metadata='string',
    ClientRequestToken='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance request.

  • AppInstanceUserId (string) --

    [REQUIRED]

    The user ID of the AppInstance .

  • Name (string) --

    [REQUIRED]

    The user's name.

  • Metadata (string) -- The request's metadata. Limited to a 1KB string in UTF-8.
  • ClientRequestToken (string) --

    [REQUIRED]

    The token assigned to the user requesting an AppInstance .

    This field is autopopulated if not provided.

  • Tags (list) --

    Tags assigned to the AppInstanceUser .

    • (dict) --

      Describes a tag applied to a resource.

      • Key (string) -- [REQUIRED]

        The key of the tag.

      • Value (string) -- [REQUIRED]

        The value of the tag.

Return type

dict

Returns

Response Syntax

{
    'AppInstanceUserArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The user's ARN.

Exceptions

delete_app_instance(**kwargs)

Deletes an AppInstance and all associated data asynchronously.

See also: AWS API Documentation

Request Syntax

response = client.delete_app_instance(
    AppInstanceArn='string'
)
Parameters
AppInstanceArn (string) --

[REQUIRED]

The ARN of the AppInstance .

Returns
None

Exceptions

delete_app_instance_admin(**kwargs)

Demotes an AppInstanceAdmin to an AppInstanceUser . This action does not delete the user.

See also: AWS API Documentation

Request Syntax

response = client.delete_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
Parameters
  • AppInstanceAdminArn (string) --

    [REQUIRED]

    The ARN of the AppInstance 's administrator.

  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

Returns

None

Exceptions

delete_app_instance_user(**kwargs)

Deletes an AppInstanceUser .

See also: AWS API Documentation

Request Syntax

response = client.delete_app_instance_user(
    AppInstanceUserArn='string'
)
Parameters
AppInstanceUserArn (string) --

[REQUIRED]

The ARN of the user request being deleted.

Returns
None

Exceptions

describe_app_instance(**kwargs)

Returns the full details of an AppInstance .

See also: AWS API Documentation

Request Syntax

response = client.describe_app_instance(
    AppInstanceArn='string'
)
Parameters
AppInstanceArn (string) --

[REQUIRED]

The ARN of the AppInstance .

Return type
dict
Returns
Response Syntax
{
    'AppInstance': {
        'AppInstanceArn': 'string',
        'Name': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'LastUpdatedTimestamp': datetime(2015, 1, 1),
        'Metadata': 'string'
    }
}

Response Structure

  • (dict) --
    • AppInstance (dict) --

      The ARN, metadata, created and last-updated timestamps, and the name of the AppInstance . All timestamps use epoch milliseconds.

      • AppInstanceArn (string) --

        The ARN of the messaging instance.

      • Name (string) --

        The name of an AppInstance .

      • CreatedTimestamp (datetime) --

        The time at which an AppInstance was created. In epoch milliseconds.

      • LastUpdatedTimestamp (datetime) --

        The time an AppInstance was last updated. In epoch milliseconds.

      • Metadata (string) --

        The metadata of an AppInstance .

Exceptions

describe_app_instance_admin(**kwargs)

Returns the full details of an AppInstanceAdmin .

See also: AWS API Documentation

Request Syntax

response = client.describe_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
Parameters
  • AppInstanceAdminArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceAdmin .

  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

Return type

dict

Returns

Response Syntax

{
    'AppInstanceAdmin': {
        'Admin': {
            'Arn': 'string',
            'Name': 'string'
        },
        'AppInstanceArn': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --

    • AppInstanceAdmin (dict) --

      The ARN and name of the AppInstanceUser , the ARN of the AppInstance , and the created and last-updated timestamps. All timestamps use epoch milliseconds.

      • Admin (dict) --

        The AppInstanceAdmin data.

        • Arn (string) --

          The ARN in an Identity.

        • Name (string) --

          The name in an Identity.

      • AppInstanceArn (string) --

        The ARN of the AppInstance for which the user is an administrator.

      • CreatedTimestamp (datetime) --

        The time at which an administrator was created.

Exceptions

describe_app_instance_user(**kwargs)

Returns the full details of an AppInstanceUser .

See also: AWS API Documentation

Request Syntax

response = client.describe_app_instance_user(
    AppInstanceUserArn='string'
)
Parameters
AppInstanceUserArn (string) --

[REQUIRED]

The ARN of the AppInstanceUser .

Return type
dict
Returns
Response Syntax
{
    'AppInstanceUser': {
        'AppInstanceUserArn': 'string',
        'Name': 'string',
        'Metadata': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'LastUpdatedTimestamp': datetime(2015, 1, 1)
    }
}

Response Structure

  • (dict) --
    • AppInstanceUser (dict) --

      The name of the AppInstanceUser .

      • AppInstanceUserArn (string) --

        The ARN of the AppInstanceUser .

      • Name (string) --

        The name of the AppInstanceUser .

      • Metadata (string) --

        The metadata of the AppInstanceUser .

      • CreatedTimestamp (datetime) --

        The time at which the AppInstanceUser was created.

      • LastUpdatedTimestamp (datetime) --

        The time at which the AppInstanceUser was last updated.

Exceptions

generate_presigned_url(ClientMethod, Params=None, ExpiresIn=3600, HttpMethod=None)

Generate a presigned url given a client, its method, and arguments

Parameters
  • ClientMethod (string) -- The client method to presign for
  • Params (dict) -- The parameters normally passed to ClientMethod.
  • ExpiresIn (int) -- The number of seconds the presigned url is valid for. By default it expires in an hour (3600 seconds)
  • HttpMethod (string) -- The http method to use on the generated url. By default, the http method is whatever is used in the method's model.
Returns

The presigned url

get_app_instance_retention_settings(**kwargs)

Gets the retention settings for an AppInstance .

See also: AWS API Documentation

Request Syntax

response = client.get_app_instance_retention_settings(
    AppInstanceArn='string'
)
Parameters
AppInstanceArn (string) --

[REQUIRED]

The ARN of the AppInstance .

Return type
dict
Returns
Response Syntax
{
    'AppInstanceRetentionSettings': {
        'ChannelRetentionSettings': {
            'RetentionDays': 123
        }
    },
    'InitiateDeletionTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --
    • AppInstanceRetentionSettings (dict) --

      The retention settings for the AppInstance .

      • ChannelRetentionSettings (dict) --

        The length of time in days to retain the messages in a channel.

        • RetentionDays (integer) --

          The time in days to retain the messages in a channel.

    • InitiateDeletionTimestamp (datetime) --

      The timestamp representing the time at which the specified items are retained, in Epoch Seconds.

Exceptions

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
L{botocore.paginate.Paginator}
Returns
A paginator object.
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
list_app_instance_admins(**kwargs)

Returns a list of the administrators in the AppInstance .

See also: AWS API Documentation

Request Syntax

response = client.list_app_instance_admins(
    AppInstanceArn='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

  • MaxResults (integer) -- The maximum number of administrators that you want to return.
  • NextToken (string) -- The token returned from previous API requests until the number of administrators is reached.
Return type

dict

Returns

Response Syntax

{
    'AppInstanceArn': 'string',
    'AppInstanceAdmins': [
        {
            'Admin': {
                'Arn': 'string',
                'Name': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The ARN of the AppInstance .

    • AppInstanceAdmins (list) --

      The information for each administrator.

      • (dict) --

        Summary of the details of an AppInstanceAdmin .

        • Admin (dict) --

          The details of the AppInstanceAdmin .

          • Arn (string) --

            The ARN in an Identity.

          • Name (string) --

            The name in an Identity.

    • NextToken (string) --

      The token returned from previous API requests until the number of administrators is reached.

Exceptions

list_app_instance_users(**kwargs)

List all AppInstanceUsers created under a single AppInstance .

See also: AWS API Documentation

Request Syntax

response = client.list_app_instance_users(
    AppInstanceArn='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

  • MaxResults (integer) -- The maximum number of requests that you want returned.
  • NextToken (string) -- The token passed by previous API calls until all requested users are returned.
Return type

dict

Returns

Response Syntax

{
    'AppInstanceArn': 'string',
    'AppInstanceUsers': [
        {
            'AppInstanceUserArn': 'string',
            'Name': 'string',
            'Metadata': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The ARN of the AppInstance .

    • AppInstanceUsers (list) --

      The information for each requested AppInstanceUser .

      • (dict) --

        Summary of the details of an AppInstanceUser .

        • AppInstanceUserArn (string) --

          The ARN of the AppInstanceUser .

        • Name (string) --

          The name of an AppInstanceUser .

        • Metadata (string) --

          The metadata of the AppInstanceUser .

    • NextToken (string) --

      The token passed by previous API calls until all requested users are returned.

Exceptions

list_app_instances(**kwargs)

Lists all Amazon Chime AppInstance s created under a single AWS account.

See also: AWS API Documentation

Request Syntax

response = client.list_app_instances(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- The maximum number of AppInstance s that you want to return.
  • NextToken (string) -- The token passed by previous API requests until you reach the maximum number of AppInstances .
Return type

dict

Returns

Response Syntax

{
    'AppInstances': [
        {
            'AppInstanceArn': 'string',
            'Name': 'string',
            'Metadata': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • AppInstances (list) --

      The information for each AppInstance .

      • (dict) --

        Summary of the data for an AppInstance .

        • AppInstanceArn (string) --

          The AppInstance ARN.

        • Name (string) --

          The name of the AppInstance .

        • Metadata (string) --

          The metadata of the AppInstance .

    • NextToken (string) --

      The token passed by previous API requests until the maximum number of AppInstance s is reached.

Exceptions

put_app_instance_retention_settings(**kwargs)

Sets the amount of time in days that a given AppInstance retains data.

See also: AWS API Documentation

Request Syntax

response = client.put_app_instance_retention_settings(
    AppInstanceArn='string',
    AppInstanceRetentionSettings={
        'ChannelRetentionSettings': {
            'RetentionDays': 123
        }
    }
)
Parameters
  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

  • AppInstanceRetentionSettings (dict) --

    [REQUIRED]

    The time in days to retain data. Data type: number.

    • ChannelRetentionSettings (dict) --

      The length of time in days to retain the messages in a channel.

      • RetentionDays (integer) --

        The time in days to retain the messages in a channel.

Return type

dict

Returns

Response Syntax

{
    'AppInstanceRetentionSettings': {
        'ChannelRetentionSettings': {
            'RetentionDays': 123
        }
    },
    'InitiateDeletionTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • AppInstanceRetentionSettings (dict) --

      The time in days to retain data. Data type: number.

      • ChannelRetentionSettings (dict) --

        The length of time in days to retain the messages in a channel.

        • RetentionDays (integer) --

          The time in days to retain the messages in a channel.

    • InitiateDeletionTimestamp (datetime) --

      The time at which the API deletes data.

Exceptions

update_app_instance(**kwargs)

Updates AppInstance metadata.

See also: AWS API Documentation

Request Syntax

response = client.update_app_instance(
    AppInstanceArn='string',
    Name='string',
    Metadata='string'
)
Parameters
  • AppInstanceArn (string) --

    [REQUIRED]

    The ARN of the AppInstance .

  • Name (string) --

    [REQUIRED]

    The name that you want to change.

  • Metadata (string) --

    [REQUIRED]

    The metadata that you want to change.

Return type

dict

Returns

Response Syntax

{
    'AppInstanceArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The ARN of the AppInstance .

Exceptions

update_app_instance_user(**kwargs)

Updates the details of an AppInstanceUser . You can update names and metadata.

See also: AWS API Documentation

Request Syntax

response = client.update_app_instance_user(
    AppInstanceUserArn='string',
    Name='string',
    Metadata='string'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

  • Name (string) --

    [REQUIRED]

    The name of the AppInstanceUser .

  • Metadata (string) --

    [REQUIRED]

    The metadata of the AppInstanceUser .

Return type

dict

Returns

Response Syntax

{
    'AppInstanceUserArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The ARN of the AppInstanceUser .

Exceptions

Client Exceptions

Client exceptions are available on a client instance via the exceptions property. For more detailed instructions and examples on the exact usage of client exceptions, see the error handling user guide.

The available client exceptions are:

class ChimeSDKIdentity.Client.exceptions.BadRequestException

The input parameters don't match the service's restrictions.

Example

try:
  ...
except client.exceptions.BadRequestException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The input parameters don't match the service's restrictions.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ConflictException

The request could not be processed because of conflict in the current state of the resource.

Example

try:
  ...
except client.exceptions.ConflictException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request could not be processed because of conflict in the current state of the resource.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ForbiddenException

The client is permanently forbidden from making the request.

Example

try:
  ...
except client.exceptions.ForbiddenException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The client is permanently forbidden from making the request.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ResourceLimitExceededException

The request exceeds the resource limit.

Example

try:
  ...
except client.exceptions.ResourceLimitExceededException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The request exceeds the resource limit.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ServiceFailureException

The service encountered an unexpected error.

Example

try:
  ...
except client.exceptions.ServiceFailureException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The service encountered an unexpected error.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ServiceUnavailableException

The service is currently unavailable.

Example

try:
  ...
except client.exceptions.ServiceUnavailableException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The service is currently unavailable.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.ThrottledClientException

The client exceeded its request rate limit.

Example

try:
  ...
except client.exceptions.ThrottledClientException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The client exceeded its request rate limit.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.
class ChimeSDKIdentity.Client.exceptions.UnauthorizedClientException

The client is not currently authorized to make the request.

Example

try:
  ...
except client.exceptions.UnauthorizedClientException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.

Syntax

{
    'Code': 'BadRequest'|'Conflict'|'Forbidden'|'NotFound'|'PreconditionFailed'|'ResourceLimitExceeded'|'ServiceFailure'|'AccessDenied'|'ServiceUnavailable'|'Throttled'|'Throttling'|'Unauthorized'|'Unprocessable'|'VoiceConnectorGroupAssociationsExist'|'PhoneNumberAssociationsExist',
    'Message': 'string',
    'Error': {
        'Code': 'string',
        'Message': 'string'
    }
}

Structure

  • (dict) --

    The client is not currently authorized to make the request.

    • Code (string) --
    • Message (string) --
    • Error (dict) -- Normalized access to common exception attributes.
      • Code (string) -- An identifier specifying the exception type.
      • Message (string) -- A descriptive message explaining why the exception occured.

Paginators

The available paginators are: