:doc:`WorkMail <../../workmail>` / Client / create_resource

***************
create_resource
***************



.. py:method:: WorkMail.Client.create_resource(**kwargs)

  

  Creates a new WorkMail resource.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/workmail-2017-10-01/CreateResource>`_  


  **Request Syntax**
  ::

    response = client.create_resource(
        OrganizationId='string',
        Name='string',
        Type='ROOM'|'EQUIPMENT',
        Description='string',
        HiddenFromGlobalAddressList=True|False
    )
    
  :type OrganizationId: string
  :param OrganizationId: **[REQUIRED]** 

    The identifier associated with the organization for which the resource is created.

    

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

    The name of the new resource.

    

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

    The type of the new resource. The available types are ``equipment`` and ``room``.

    

  
  :type Description: string
  :param Description: 

    Resource description.

    

  
  :type HiddenFromGlobalAddressList: boolean
  :param HiddenFromGlobalAddressList: 

    If this parameter is enabled, the resource will be hidden from the address book.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **ResourceId** *(string) --* 

        The identifier of the new resource.

        
  
  **Exceptions**
  
  *   :py:class:`WorkMail.Client.exceptions.DirectoryServiceAuthenticationFailedException`

  
  *   :py:class:`WorkMail.Client.exceptions.DirectoryUnavailableException`

  
  *   :py:class:`WorkMail.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`WorkMail.Client.exceptions.NameAvailabilityException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationNotFoundException`

  
  *   :py:class:`WorkMail.Client.exceptions.OrganizationStateException`

  
  *   :py:class:`WorkMail.Client.exceptions.ReservedNameException`

  
  *   :py:class:`WorkMail.Client.exceptions.UnsupportedOperationException`

  