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

*****************************************
put_app_instance_user_expiration_settings
*****************************************



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

  

  Sets the number of days before the ``AppInstanceUser`` is automatically deleted.

   

  .. note::

    

    A background process deletes expired ``AppInstanceUsers`` within 6 hours of expiration. Actual deletion times may vary.

     

    Expired ``AppInstanceUsers`` that have not yet been deleted appear as active, and you can update their expiration settings. The system honors the new settings.

    

  

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


  **Request Syntax**
  ::

    response = client.put_app_instance_user_expiration_settings(
        AppInstanceUserArn='string',
        ExpirationSettings={
            'ExpirationDays': 123,
            'ExpirationCriterion': 'CREATED_TIMESTAMP'
        }
    )
    
  :type AppInstanceUserArn: string
  :param AppInstanceUserArn: **[REQUIRED]** 

    The ARN of the ``AppInstanceUser``.

    

  
  :type ExpirationSettings: dict
  :param ExpirationSettings: 

    Settings that control the interval after which an ``AppInstanceUser`` is automatically deleted.

    

  
    - **ExpirationDays** *(integer) --* **[REQUIRED]** 

      The period in days after which an ``AppInstanceUser`` will be automatically deleted.

      

    
    - **ExpirationCriterion** *(string) --* **[REQUIRED]** 

      Specifies the conditions under which an ``AppInstanceUser`` will expire.

      

    
  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'AppInstanceUserArn': 'string',
          'ExpirationSettings': {
              'ExpirationDays': 123,
              'ExpirationCriterion': 'CREATED_TIMESTAMP'
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AppInstanceUserArn** *(string) --* 

        The ARN of the ``AppInstanceUser``.

        
      

      - **ExpirationSettings** *(dict) --* 

        Settings that control the interval after which an ``AppInstanceUser`` is automatically deleted.

        
        

        - **ExpirationDays** *(integer) --* 

          The period in days after which an ``AppInstanceUser`` will be automatically deleted.

          
        

        - **ExpirationCriterion** *(string) --* 

          Specifies the conditions under which an ``AppInstanceUser`` will expire.

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

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

  
  *   :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`

  