Chime / Client / get_app_instance_retention_settings



Gets the retention settings for an AppInstance.


This API is is no longer supported and will not be updated. We recommend using the latest version, GetMessagingRetentionSettings, in the Amazon Chime SDK.

Using the latest version requires migrating to a dedicated namespace. For more information, refer to Migrating from the Amazon Chime namespace in the Amazon Chime SDK Developer Guide.


This operation is deprecated and may not function as expected. This operation should not be used going forward and is only kept for the purpose of backwards compatiblity.

See also: AWS API Documentation

Request Syntax

response = client.get_app_instance_retention_settings(

AppInstanceArn (string) –


The ARN of the AppInstance.

Return type:



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.


  • Chime.Client.exceptions.UnauthorizedClientException

  • Chime.Client.exceptions.NotFoundException

  • Chime.Client.exceptions.BadRequestException

  • Chime.Client.exceptions.ForbiddenException

  • Chime.Client.exceptions.ThrottledClientException

  • Chime.Client.exceptions.ServiceUnavailableException

  • Chime.Client.exceptions.ServiceFailureException