ACM / Client / list_tags_for_resource

list_tags_for_resource

ACM.Client.list_tags_for_resource(**kwargs)

Lists the tags associated with an ACM resource.

Note

Use this action for all ACM resource types except the certificate resource type. For certificate resources, use ListTagsForCertificate instead.

To add one or more tags, use the TagResource action. To remove one or more tags, use the UntagResource action.

See also: AWS API Documentation

Request Syntax

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

ResourceArn (string) –

[REQUIRED]

The ARN of the ACM resource for which to list tags.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (list) –

      The tags associated with the resource.

      • (dict) –

        A key-value pair that identifies or specifies metadata about an ACM resource.

        • Key (string) –

          The key of the tag.

        • Value (string) –

          The value of the tag.

Exceptions