:doc:`Chime <../../chime>` / Client / create_room

***********
create_room
***********



.. py:method:: Chime.Client.create_room(**kwargs)

  

  Creates a chat room for the specified Amazon Chime Enterprise account.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/CreateRoom>`_  


  **Request Syntax**
  ::

    response = client.create_room(
        AccountId='string',
        Name='string',
        ClientRequestToken='string'
    )
    
  :type AccountId: string
  :param AccountId: **[REQUIRED]** 

    The Amazon Chime account ID.

    

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

    The room name.

    

  
  :type ClientRequestToken: string
  :param ClientRequestToken: 

    The idempotency token for the request.

    This field is autopopulated if not provided.

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

    
    ::

      {
          'Room': {
              'RoomId': 'string',
              'Name': 'string',
              'AccountId': 'string',
              'CreatedBy': 'string',
              'CreatedTimestamp': datetime(2015, 1, 1),
              'UpdatedTimestamp': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Room** *(dict) --* 

        The room details.

        
        

        - **RoomId** *(string) --* 

          The room ID.

          
        

        - **Name** *(string) --* 

          The room name.

          
        

        - **AccountId** *(string) --* 

          The Amazon Chime account ID.

          
        

        - **CreatedBy** *(string) --* 

          The identifier of the room creator.

          
        

        - **CreatedTimestamp** *(datetime) --* 

          The room creation timestamp, in ISO 8601 format.

          
        

        - **UpdatedTimestamp** *(datetime) --* 

          The room update timestamp, in ISO 8601 format.

          
    
  
  **Exceptions**
  
  *   :py:class:`Chime.Client.exceptions.NotFoundException`

  
  *   :py:class:`Chime.Client.exceptions.BadRequestException`

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

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

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

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

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

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

  