:doc:`ConnectCases <../../connectcases>` / Client / create_domain

*************
create_domain
*************



.. py:method:: ConnectCases.Client.create_domain(**kwargs)

  

  Creates a domain, which is a container for all case data, such as cases, fields, templates and layouts. Each Amazon Connect instance can be associated with only one Cases domain.

   

  .. warning::

     

    This will not associate your connect instance to Cases domain. Instead, use the Amazon Connect `CreateIntegrationAssociation <https://docs.aws.amazon.com/connect/latest/APIReference/API_CreateIntegrationAssociation.html>`__ API. You need specific IAM permissions to successfully associate the Cases domain. For more information, see `Onboard to Cases <https://docs.aws.amazon.com/connect/latest/adminguide/required-permissions-iam-cases.html#onboard-cases-iam>`__.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connectcases-2022-10-03/CreateDomain>`_  


  **Request Syntax**
  ::

    response = client.create_domain(
        name='string'
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name for your Cases domain. It must be unique for your Amazon Web Services account.

    

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

    
    ::

      {
          'domainId': 'string',
          'domainArn': 'string',
          'domainStatus': 'Active'|'CreationInProgress'|'CreationFailed'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **domainId** *(string) --* 

        The unique identifier of the Cases domain.

        
      

      - **domainArn** *(string) --* 

        The Amazon Resource Name (ARN) for the Cases domain.

        
      

      - **domainStatus** *(string) --* 

        The status of the domain.

        
  
  **Exceptions**
  
  *   :py:class:`ConnectCases.Client.exceptions.InternalServerException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ValidationException`

  
  *   :py:class:`ConnectCases.Client.exceptions.ThrottlingException`

  
  *   :py:class:`ConnectCases.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`ConnectCases.Client.exceptions.ServiceQuotaExceededException`

  