:doc:`ChimeSDKIdentity <../../chime-sdk-identity>` / Client / get_app_instance_retention_settings

***********************************
get_app_instance_retention_settings
***********************************



.. py:method:: ChimeSDKIdentity.Client.get_app_instance_retention_settings(**kwargs)

  

  Gets the retention settings for an ``AppInstance``.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/GetAppInstanceRetentionSettings>`_  


  **Request Syntax**
  ::

    response = 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.

        
  
  **Exceptions**
  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.BadRequestException`

  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.ForbiddenException`

  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.ThrottledClientException`

  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.UnauthorizedClientException`

  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.ServiceUnavailableException`

  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.ServiceFailureException`

  