:doc:`IoTTwinMaker <../../iottwinmaker>` / Client / create_workspace

****************
create_workspace
****************



.. py:method:: IoTTwinMaker.Client.create_workspace(**kwargs)

  

  Creates a workplace.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/iottwinmaker-2021-11-29/CreateWorkspace>`_  


  **Request Syntax**
  ::

    response = client.create_workspace(
        workspaceId='string',
        description='string',
        s3Location='string',
        role='string',
        tags={
            'string': 'string'
        }
    )
    
  :type workspaceId: string
  :param workspaceId: **[REQUIRED]** 

    The ID of the workspace.

    

  
  :type description: string
  :param description: 

    The description of the workspace.

    

  
  :type s3Location: string
  :param s3Location: 

    The ARN of the S3 bucket where resources associated with the workspace are stored.

    

  
  :type role: string
  :param role: 

    The ARN of the execution role associated with the workspace.

    

  
  :type tags: dict
  :param tags: 

    Metadata that you can use to manage the workspace

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'arn': 'string',
          'creationDateTime': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **arn** *(string) --* 

        The ARN of the workspace.

        
      

      - **creationDateTime** *(datetime) --* 

        The date and time when the workspace was created.

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

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

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

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

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

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

  