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

*************************
create_app_instance_admin
*************************



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

  

  Promotes an ``AppInstanceUser`` or ``AppInstanceBot`` to an ``AppInstanceAdmin``. The promoted entity can perform the following actions.

   

  
  * ``ChannelModerator`` actions across all channels in the ``AppInstance``.
   
  * ``DeleteChannelMessage`` actions.
  

   

  Only an ``AppInstanceUser`` and ``AppInstanceBot`` can be promoted to an ``AppInstanceAdmin`` role.

  

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


  **Request Syntax**
  ::

    response = 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 ARN and name of the administrator, the ARN of the ``AppInstance``, and the created and last-updated timestamps. All timestamps use epoch milliseconds.

        
        

        - **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**
  
  *   :py:class:`ChimeSDKIdentity.Client.exceptions.BadRequestException`

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

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

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

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

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

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

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

  