create_workspace

create_workspace(**kwargs)

Creates a workplace.

See also: AWS API Documentation

Request Syntax

response = client.create_workspace(
    workspaceId='string',
    description='string',
    s3Location='string',
    role='string',
    tags={
        'string': 'string'
    }
)
Parameters
  • workspaceId (string) --

    [REQUIRED]

    The ID of the workspace.

  • description (string) -- The description of the workspace.
  • s3Location (string) --

    [REQUIRED]

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

  • role (string) --

    [REQUIRED]

    The ARN of the execution role associated with the workspace.

  • tags (dict) --

    Metadata that you can use to manage the workspace

    • (string) --
      • (string) --
Return type

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

  • IoTTwinMaker.Client.exceptions.InternalServerException
  • IoTTwinMaker.Client.exceptions.AccessDeniedException
  • IoTTwinMaker.Client.exceptions.ThrottlingException
  • IoTTwinMaker.Client.exceptions.ValidationException
  • IoTTwinMaker.Client.exceptions.ConflictException
  • IoTTwinMaker.Client.exceptions.ServiceQuotaExceededException