CloudWatchApplicationSignals / Client / list_tags_for_resource

list_tags_for_resource#

CloudWatchApplicationSignals.Client.list_tags_for_resource(**kwargs)#

Displays the tags associated with a CloudWatch resource. Tags can be assigned to service level objectives.

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

The ARN format of an Application Signals SLO is arn:aws:cloudwatch:Region:account-id:slo:slo-name

For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (list) –

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

      • (dict) –

        A key-value pair associated with a resource. Tags can help you organize and categorize your resources.

        • Key (string) –

          A string that you can use to assign a value. The combination of tag keys and values can help you organize and categorize your resources.

        • Value (string) –

          The value for the specified tag key.

Exceptions

  • CloudWatchApplicationSignals.Client.exceptions.ResourceNotFoundException

  • CloudWatchApplicationSignals.Client.exceptions.ThrottlingException