CloudWatchObservabilityAdminService / Client / list_tags_for_resource

list_tags_for_resource

CloudWatchObservabilityAdminService.Client.list_tags_for_resource(**kwargs)

Lists all tags attached to the specified resource. Supports telemetry rule resources and telemetry pipeline resources.

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 telemetry rule resource whose tags you want to list.

Return type:

dict

Returns:

Response Syntax

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

Response Structure

  • (dict) –

    • Tags (dict) –

      The list of tags associated with the telemetry rule resource.

      • (string) –

        • (string) –

Exceptions

  • CloudWatchObservabilityAdminService.Client.exceptions.ResourceNotFoundException

  • CloudWatchObservabilityAdminService.Client.exceptions.AccessDeniedException

  • CloudWatchObservabilityAdminService.Client.exceptions.InternalServerException

  • CloudWatchObservabilityAdminService.Client.exceptions.ValidationException

  • CloudWatchObservabilityAdminService.Client.exceptions.TooManyRequestsException