WorkspacesInstances / Client / list_tags_for_resource

list_tags_for_resource

WorkspacesInstances.Client.list_tags_for_resource(**kwargs)

Retrieves tags for a WorkSpace Instance.

See also: AWS API Documentation

Request Syntax

response = client.list_tags_for_resource(
    WorkspaceInstanceId='string'
)
Parameters:

WorkspaceInstanceId (string) –

[REQUIRED]

Unique identifier of the WorkSpace Instance.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    Returns the list of tags for the specified WorkSpace Instance.

    • Tags (list) –

      Collection of tags associated with 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.

Exceptions

  • WorkspacesInstances.Client.exceptions.ValidationException

  • WorkspacesInstances.Client.exceptions.AccessDeniedException

  • WorkspacesInstances.Client.exceptions.ResourceNotFoundException

  • WorkspacesInstances.Client.exceptions.ThrottlingException

  • WorkspacesInstances.Client.exceptions.InternalServerException