QuickSight / Client / list_tags_for_resource

list_tags_for_resource#

QuickSight.Client.list_tags_for_resource(**kwargs)#

Lists the tags assigned to a resource.

See also: AWS API Documentation

Request Syntax

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

ResourceArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the resource that you want a list of tags for.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ],
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) –

    • Tags (list) –

      Contains a map of the key-value pairs for the resource tag or tags assigned to the resource.

      • (dict) –

        The key or keys of the key-value pairs for the resource tag or tags assigned to the resource.

        • Key (string) –

          Tag key.

        • Value (string) –

          Tag value.

    • RequestId (string) –

      The Amazon Web Services request ID for this operation.

    • Status (integer) –

      The HTTP status of the request.

Exceptions

  • QuickSight.Client.exceptions.AccessDeniedException

  • QuickSight.Client.exceptions.InvalidParameterValueException

  • QuickSight.Client.exceptions.ResourceNotFoundException

  • QuickSight.Client.exceptions.ThrottlingException

  • QuickSight.Client.exceptions.InternalFailureException