WorkspacesInstances / Client / tag_resource

tag_resource

WorkspacesInstances.Client.tag_resource(**kwargs)

Adds tags to a WorkSpace Instance.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    WorkspaceInstanceId='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • WorkspaceInstanceId (string) –

    [REQUIRED]

    Unique identifier of the WorkSpace Instance to tag.

  • Tags (list) –

    [REQUIRED]

    Tags to be added to the WorkSpace Instance.

    • (dict) –

      Represents a key-value metadata tag.

      • Key (string) –

        Unique identifier for the tag.

      • Value (string) –

        Value associated with the tag key.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    Confirms successful tag addition.

Exceptions

  • WorkspacesInstances.Client.exceptions.ValidationException

  • WorkspacesInstances.Client.exceptions.AccessDeniedException

  • WorkspacesInstances.Client.exceptions.ResourceNotFoundException

  • WorkspacesInstances.Client.exceptions.ThrottlingException

  • WorkspacesInstances.Client.exceptions.InternalServerException