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) --

      A tag object containing a key-value pair.

      • Key (string) -- [REQUIRED]

        The key in a tag.

      • Value (string) -- [REQUIRED]

        The value in a 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) --

      A tag object containing a key-value pair.

      • Key (string) -- [REQUIRED]

        The key in a tag.

      • Value (string) -- [REQUIRED]

        The value in a 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

deregister_app_instance_user_endpoint(**kwargs)

Deregisters an AppInstanceUserEndpoint .

See also: AWS API Documentation

Request Syntax

response = client.deregister_app_instance_user_endpoint(
    AppInstanceUserArn='string',
    EndpointId='string'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

  • EndpointId (string) --

    [REQUIRED]

    The unique identifier of the AppInstanceUserEndpoint .

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

describe_app_instance_user_endpoint(**kwargs)

Returns the full details of an AppInstanceUserEndpoint .

See also: AWS API Documentation

Request Syntax

response = client.describe_app_instance_user_endpoint(
    AppInstanceUserArn='string',
    EndpointId='string'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

  • EndpointId (string) --

    [REQUIRED]

    The unique identifier of the AppInstanceUserEndpoint .

Return type

dict

Returns

Response Syntax

{
    'AppInstanceUserEndpoint': {
        'AppInstanceUserArn': 'string',
        'EndpointId': 'string',
        'Name': 'string',
        'Type': 'APNS'|'APNS_SANDBOX'|'GCM',
        'ResourceArn': 'string',
        'EndpointAttributes': {
            'DeviceToken': 'string',
            'VoipDeviceToken': 'string'
        },
        'CreatedTimestamp': datetime(2015, 1, 1),
        'LastUpdatedTimestamp': datetime(2015, 1, 1),
        'AllowMessages': 'ALL'|'NONE',
        'EndpointState': {
            'Status': 'ACTIVE'|'INACTIVE',
            'StatusReason': 'INVALID_DEVICE_TOKEN'|'INVALID_PINPOINT_ARN'
        }
    }
}

Response Structure

  • (dict) --

    • AppInstanceUserEndpoint (dict) --

      The full details of an AppInstanceUserEndpoint : the AppInstanceUserArn , ID, name, type, resource ARN, attributes, allow messages, state, and created and last updated timestamps. All timestamps use epoch milliseconds.

      • AppInstanceUserArn (string) --

        The ARN of the AppInstanceUser .

      • EndpointId (string) --

        The unique identifier of the AppInstanceUserEndpoint .

      • Name (string) --

        The name of the AppInstanceUserEndpoint .

      • Type (string) --

        The type of the AppInstanceUserEndpoint .

      • ResourceArn (string) --

        The ARN of the resource to which the endpoint belongs.

      • EndpointAttributes (dict) --

        The attributes of an Endpoint .

        • DeviceToken (string) --

          The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.

        • VoipDeviceToken (string) --

          The VOIP device token for the APNS and APNS_SANDBOX endpoint types.

      • CreatedTimestamp (datetime) --

        The time at which an AppInstanceUserEndpoint was created.

      • LastUpdatedTimestamp (datetime) --

        The time at which an AppInstanceUserEndpoint was last updated.

      • AllowMessages (string) --

        Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.

      • EndpointState (dict) --

        A read-only field that represents the state of an AppInstanceUserEndpoint . Supported values:

        • ACTIVE : The AppInstanceUserEndpoint is active and able to receive messages. When ACTIVE , the EndpointStatusReason remains empty.
        • INACTIVE : The AppInstanceUserEndpoint is inactive and can't receive message. When INACTIVE , the corresponding reason will be conveyed through EndpointStatusReason .
        • INVALID_DEVICE_TOKEN indicates that an AppInstanceUserEndpoint is INACTIVE due to invalid device token
        • INVALID_PINPOINT_ARN indicates that an AppInstanceUserEndpoint is INACTIVE due to an invalid pinpoint ARN that was input through the ResourceArn field.
        • Status (string) --

          Enum that indicates the Status of an AppInstanceUserEndpoint .

        • StatusReason (string) --

          The reason for the EndpointStatus .

Exceptions

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

Lists all the AppInstanceUserEndpoints created under a single AppInstanceUser .

See also: AWS API Documentation

Request Syntax

response = client.list_app_instance_user_endpoints(
    AppInstanceUserArn='string',
    MaxResults=123,
    NextToken='string'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

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

dict

Returns

Response Syntax

{
    'AppInstanceUserEndpoints': [
        {
            'AppInstanceUserArn': 'string',
            'EndpointId': 'string',
            'Name': 'string',
            'Type': 'APNS'|'APNS_SANDBOX'|'GCM',
            'AllowMessages': 'ALL'|'NONE',
            'EndpointState': {
                'Status': 'ACTIVE'|'INACTIVE',
                'StatusReason': 'INVALID_DEVICE_TOKEN'|'INVALID_PINPOINT_ARN'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserEndpoints (list) --

      The information for each requested AppInstanceUserEndpoint .

      • (dict) --

        Summary of the details of an AppInstanceUserEndpoint .

        • AppInstanceUserArn (string) --

          The ARN of the AppInstanceUser .

        • EndpointId (string) --

          The unique identifier of the AppInstanceUserEndpoint .

        • Name (string) --

          The name of the AppInstanceUserEndpoint .

        • Type (string) --

          The type of the AppInstanceUserEndpoint .

        • AllowMessages (string) --

          BBoolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.

        • EndpointState (dict) --

          A read-only field that represent the state of an AppInstanceUserEndpoint .

          • Status (string) --

            Enum that indicates the Status of an AppInstanceUserEndpoint .

          • StatusReason (string) --

            The reason for the EndpointStatus .

    • NextToken (string) --

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

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

list_tags_for_resource(**kwargs)

Lists the tags applied to an Amazon Chime SDK identity resource.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    ResourceARN='string'
)
Parameters
ResourceARN (string) --

[REQUIRED]

The ARN of the resource.

Return type
dict
Returns
Response Syntax
{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • Tags (list) --

      The tag key-value pairs.

      • (dict) --

        A tag object containing a key-value pair.

        • Key (string) --

          The key in a tag.

        • Value (string) --

          The value in a tag.

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

register_app_instance_user_endpoint(**kwargs)

Registers an endpoint under an Amazon Chime AppInstanceUser . The endpoint receives messages for a user. For push notifications, the endpoint is a mobile device used to receive mobile push notifications for a user.

See also: AWS API Documentation

Request Syntax

response = client.register_app_instance_user_endpoint(
    AppInstanceUserArn='string',
    Name='string',
    Type='APNS'|'APNS_SANDBOX'|'GCM',
    ResourceArn='string',
    EndpointAttributes={
        'DeviceToken': 'string',
        'VoipDeviceToken': 'string'
    },
    ClientRequestToken='string',
    AllowMessages='ALL'|'NONE'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

  • Name (string) -- The name of the AppInstanceUserEndpoint .
  • Type (string) --

    [REQUIRED]

    The type of the AppInstanceUserEndpoint . Supported types:

    • APNS : The mobile notification service for an Apple device.
    • APNS_SANDBOX : The sandbox environment of the mobile notification service for an Apple device.
    • GCM : The mobile notification service for an Android device.

    Populate the ResourceArn value of each type as PinpointAppArn .

  • ResourceArn (string) --

    [REQUIRED]

    The ARN of the resource to which the endpoint belongs.

  • EndpointAttributes (dict) --

    [REQUIRED]

    The attributes of an Endpoint .

    • DeviceToken (string) -- [REQUIRED]

      The device token for the GCM, APNS, and APNS_SANDBOX endpoint types.

    • VoipDeviceToken (string) --

      The VOIP device token for the APNS and APNS_SANDBOX endpoint types.

  • ClientRequestToken (string) --

    [REQUIRED]

    The idempotency token for each client request.

    This field is autopopulated if not provided.

  • AllowMessages (string) -- Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint receives all messages. NONE indicates the endpoint receives no messages.
Return type

dict

Returns

Response Syntax

{
    'AppInstanceUserArn': 'string',
    'EndpointId': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The ARN of the AppInstanceUser .

    • EndpointId (string) --

      The unique identifier of the AppInstanceUserEndpoint .

Exceptions

tag_resource(**kwargs)

Applies the specified tags to the specified Amazon Chime SDK identity resource.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceARN='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters
  • ResourceARN (string) --

    [REQUIRED]

    The resource ARN.

  • Tags (list) --

    [REQUIRED]

    The tag key-value pairs.

    • (dict) --

      A tag object containing a key-value pair.

      • Key (string) -- [REQUIRED]

        The key in a tag.

      • Value (string) -- [REQUIRED]

        The value in a tag.

Returns

None

Exceptions

untag_resource(**kwargs)

Removes the specified tags from the specified Amazon Chime SDK identity resource.

See also: AWS API Documentation

Request Syntax

response = client.untag_resource(
    ResourceARN='string',
    TagKeys=[
        'string',
    ]
)
Parameters
  • ResourceARN (string) --

    [REQUIRED]

    The resource ARN.

  • TagKeys (list) --

    [REQUIRED]

    The tag keys.

    • (string) --
Returns

None

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

update_app_instance_user_endpoint(**kwargs)

Updates the details of an AppInstanceUserEndpoint . You can update the name and AllowMessage values.

See also: AWS API Documentation

Request Syntax

response = client.update_app_instance_user_endpoint(
    AppInstanceUserArn='string',
    EndpointId='string',
    Name='string',
    AllowMessages='ALL'|'NONE'
)
Parameters
  • AppInstanceUserArn (string) --

    [REQUIRED]

    The ARN of the AppInstanceUser .

  • EndpointId (string) --

    [REQUIRED]

    The unique identifier of the AppInstanceUserEndpoint .

  • Name (string) -- The name of the AppInstanceUserEndpoint .
  • AllowMessages (string) -- Boolean that controls whether the AppInstanceUserEndpoint is opted in to receive messages. ALL indicates the endpoint will receive all messages. NONE indicates the endpoint will receive no messages.
Return type

dict

Returns

Response Syntax

{
    'AppInstanceUserArn': 'string',
    'EndpointId': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The ARN of the AppInstanceUser .

    • EndpointId (string) --

      The unique identifier of the AppInstanceUserEndpoint .

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: