Synthetics / Client / list_tags_for_resource

list_tags_for_resource#

Synthetics.Client.list_tags_for_resource(**kwargs)#

Displays the tags associated with a canary or group.

See also: AWS API Documentation

Request Syntax

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

ResourceArn (string) –

[REQUIRED]

The ARN of the canary or group that you want to view tags for.

The ARN format of a canary is ``arn:aws:synthetics:Region:account-id:canary:canary-name ``.

The ARN format of a group is arn:aws:synthetics:Region:account-id:group:group-name

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (dict) –

      The list of tag keys and values associated with the resource that you specified.

      • (string) –

        • (string) –

Exceptions

  • Synthetics.Client.exceptions.BadRequestException

  • Synthetics.Client.exceptions.NotFoundException

  • Synthetics.Client.exceptions.TooManyRequestsException

  • Synthetics.Client.exceptions.ConflictException

  • Synthetics.Client.exceptions.InternalFailureException