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

*******************
create_app_instance
*******************



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

  

  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 <https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstance>`_  


  **Request Syntax**
  ::

    response = 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 unique ID of the request. Use different tokens to create different ``AppInstances``.

    This field is autopopulated if not provided.

  
  :type Tags: list
  :param Tags: 

    Tags assigned to the ``AppInstance``.

    

  
    - *(dict) --* 

      A tag object containing a key-value pair.

      

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

        The key in a tag.

        

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

        The value in a tag.

        

      
    

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

    
    ::

      {
          'AppInstanceArn': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AppInstanceArn** *(string) --* 

        The Amazon Resource Number (ARN) of 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`

  