mediapackagev2 / Client / list_tags_for_resource

list_tags_for_resource#

mediapackagev2.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 ARN of the CloudWatch resource that you want to view tags for.

Return type:

dict

Returns:

Response Syntax

{
    'Tags': {
        'string': 'string'
    }
}

Response Structure

  • (dict) –

    • Tags (dict) –

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

      • (string) –

        • (string) –

Exceptions

  • mediapackagev2.Client.exceptions.ValidationException