Amazon Chime SDK Identity

2021/08/06 - Amazon Chime SDK Identity - 16 new api methods

Changes  The Amazon Chime SDK Identity APIs allow software developers to create and manage unique instances of their messaging applications.

DescribeAppInstance (new) Link ¶

Returns the full details of an AppInstance .

See also: AWS API Documentation

Request Syntax

client.describe_app_instance(
    AppInstanceArn='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

rtype

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 .

GetAppInstanceRetentionSettings (new) Link ¶

Gets the retention settings for an AppInstance .

See also: AWS API Documentation

Request Syntax

client.get_app_instance_retention_settings(
    AppInstanceArn='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

rtype

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.

UpdateAppInstanceUser (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.update_app_instance_user(
    AppInstanceUserArn='string',
    Name='string',
    Metadata='string'
)
type AppInstanceUserArn

string

param AppInstanceUserArn

[REQUIRED]

The ARN of the AppInstanceUser .

type Name

string

param Name

[REQUIRED]

The name of the AppInstanceUser .

type Metadata

string

param Metadata

[REQUIRED]

The metadata of the AppInstanceUser .

rtype

dict

returns

Response Syntax

{
    'AppInstanceUserArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The ARN of the AppInstanceUser .

CreateAppInstanceUser (new) Link ¶

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

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

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance request.

type AppInstanceUserId

string

param AppInstanceUserId

[REQUIRED]

The user ID of the AppInstance .

type Name

string

param Name

[REQUIRED]

The user's name.

type Metadata

string

param Metadata

The request's metadata. Limited to a 1KB string in UTF-8.

type ClientRequestToken

string

param ClientRequestToken

[REQUIRED]

The token assigned to the user requesting an AppInstance .

This field is autopopulated if not provided.

type Tags

list

param Tags

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.

rtype

dict

returns

Response Syntax

{
    'AppInstanceUserArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceUserArn (string) --

      The user's ARN.

DescribeAppInstanceAdmin (new) Link ¶

Returns the full details of an AppInstanceAdmin .

See also: AWS API Documentation

Request Syntax

client.describe_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
type AppInstanceAdminArn

string

param AppInstanceAdminArn

[REQUIRED]

The ARN of the AppInstanceAdmin .

type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

rtype

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.

DeleteAppInstanceAdmin (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.delete_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
type AppInstanceAdminArn

string

param AppInstanceAdminArn

[REQUIRED]

The ARN of the AppInstance 's administrator.

type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

returns

None

UpdateAppInstance (new) Link ¶

Updates AppInstance metadata.

See also: AWS API Documentation

Request Syntax

client.update_app_instance(
    AppInstanceArn='string',
    Name='string',
    Metadata='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

type Name

string

param Name

[REQUIRED]

The name that you want to change.

type Metadata

string

param Metadata

[REQUIRED]

The metadata that you want to change.

rtype

dict

returns

Response Syntax

{
    'AppInstanceArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The ARN of the AppInstance .

DeleteAppInstanceUser (new) Link ¶

Deletes an AppInstanceUser .

See also: AWS API Documentation

Request Syntax

client.delete_app_instance_user(
    AppInstanceUserArn='string'
)
type AppInstanceUserArn

string

param AppInstanceUserArn

[REQUIRED]

The ARN of the user request being deleted.

returns

None

ListAppInstanceAdmins (new) Link ¶

Returns a list of the administrators in the AppInstance .

See also: AWS API Documentation

Request Syntax

client.list_app_instance_admins(
    AppInstanceArn='string',
    MaxResults=123,
    NextToken='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

type MaxResults

integer

param MaxResults

The maximum number of administrators that you want to return.

type NextToken

string

param NextToken

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

rtype

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.

CreateAppInstanceAdmin (new) Link ¶

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

client.create_app_instance_admin(
    AppInstanceAdminArn='string',
    AppInstanceArn='string'
)
type AppInstanceAdminArn

string

param AppInstanceAdminArn

[REQUIRED]

The ARN of the administrator of the current AppInstance .

type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

rtype

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 .

CreateAppInstance (new) Link ¶

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

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

string

param Name

[REQUIRED]

The name of the AppInstance .

type Metadata

string

param Metadata

The metadata of the AppInstance . Limited to a 1KB string in UTF-8.

type ClientRequestToken

string

param ClientRequestToken

[REQUIRED]

The ClientRequestToken of the AppInstance .

This field is autopopulated if not provided.

type Tags

list

param Tags

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.

rtype

dict

returns

Response Syntax

{
    'AppInstanceArn': 'string'
}

Response Structure

  • (dict) --

    • AppInstanceArn (string) --

      The Amazon Resource Number (ARN) of the AppInstance .

ListAppInstanceUsers (new) Link ¶

List all AppInstanceUsers created under a single AppInstance .

See also: AWS API Documentation

Request Syntax

client.list_app_instance_users(
    AppInstanceArn='string',
    MaxResults=123,
    NextToken='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

type MaxResults

integer

param MaxResults

The maximum number of requests that you want returned.

type NextToken

string

param NextToken

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

rtype

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.

ListAppInstances (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.list_app_instances(
    MaxResults=123,
    NextToken='string'
)
type MaxResults

integer

param MaxResults

The maximum number of AppInstance s that you want to return.

type NextToken

string

param NextToken

The token passed by previous API requests until you reach the maximum number of AppInstances .

rtype

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.

PutAppInstanceRetentionSettings (new) Link ¶

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

See also: AWS API Documentation

Request Syntax

client.put_app_instance_retention_settings(
    AppInstanceArn='string',
    AppInstanceRetentionSettings={
        'ChannelRetentionSettings': {
            'RetentionDays': 123
        }
    }
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

type AppInstanceRetentionSettings

dict

param AppInstanceRetentionSettings

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

rtype

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.

DeleteAppInstance (new) Link ¶

Deletes an AppInstance and all associated data asynchronously.

See also: AWS API Documentation

Request Syntax

client.delete_app_instance(
    AppInstanceArn='string'
)
type AppInstanceArn

string

param AppInstanceArn

[REQUIRED]

The ARN of the AppInstance .

returns

None

DescribeAppInstanceUser (new) Link ¶

Returns the full details of an AppInstanceUser .

See also: AWS API Documentation

Request Syntax

client.describe_app_instance_user(
    AppInstanceUserArn='string'
)
type AppInstanceUserArn

string

param AppInstanceUserArn

[REQUIRED]

The ARN of the AppInstanceUser .

rtype

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.