:doc:`rePostPrivate <../../repostspace>` / Client / create_space

************
create_space
************



.. py:method:: rePostPrivate.Client.create_space(**kwargs)

  

  Creates an AWS re:Post Private private re:Post.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/repostspace-2022-05-13/CreateSpace>`_  


  **Request Syntax**
  ::

    response = client.create_space(
        name='string',
        subdomain='string',
        tier='BASIC'|'STANDARD',
        description='string',
        userKMSKey='string',
        tags={
            'string': 'string'
        },
        roleArn='string',
        supportedEmailDomains={
            'enabled': 'ENABLED'|'DISABLED',
            'allowedDomains': [
                'string',
            ]
        }
    )
    
  :type name: string
  :param name: **[REQUIRED]** 

    The name for the private re:Post. This must be unique in your account.

    

  
  :type subdomain: string
  :param subdomain: **[REQUIRED]** 

    The subdomain that you use to access your AWS re:Post Private private re:Post. All custom subdomains must be approved by AWS before use. In addition to your custom subdomain, all private re:Posts are issued an AWS generated subdomain for immediate use.

    

  
  :type tier: string
  :param tier: **[REQUIRED]** 

    The pricing tier for the private re:Post.

    

  
  :type description: string
  :param description: 

    A description for the private re:Post. This is used only to help you identify this private re:Post.

    

  
  :type userKMSKey: string
  :param userKMSKey: 

    The AWS KMS key ARN that’s used for the AWS KMS encryption. If you don't provide a key, your data is encrypted by default with a key that AWS owns and manages for you.

    

  
  :type tags: dict
  :param tags: 

    The list of tags associated with the private re:Post.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


  :type roleArn: string
  :param roleArn: 

    The IAM role that grants permissions to the private re:Post to convert unanswered questions into AWS support tickets.

    

  
  :type supportedEmailDomains: dict
  :param supportedEmailDomains: 

  
    - **enabled** *(string) --* 

    
    - **allowedDomains** *(list) --* 

    
      - *(string) --* 

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

    
    ::

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

    

    - *(dict) --* 
      

      - **spaceId** *(string) --* 

        The unique ID of the private re:Post.

        
  
  **Exceptions**
  
  *   :py:class:`rePostPrivate.Client.exceptions.ServiceQuotaExceededException`

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

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

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

  
  *   :py:class:`rePostPrivate.Client.exceptions.ResourceNotFoundException`

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

  
  *   :py:class:`rePostPrivate.Client.exceptions.InternalServerException`

  