PrometheusService / Client / list_tags_for_resource

list_tags_for_resource#

PrometheusService.Client.list_tags_for_resource(**kwargs)#

The ListTagsForResource operation returns the tags that are associated with an Amazon Managed Service for Prometheus resource. Currently, the only resources that can be tagged are workspaces and rule groups namespaces.

See also: AWS API Documentation

Request Syntax

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

resourceArn (string) –

[REQUIRED]

The ARN of the resource to list tages for. Must be a workspace or rule groups namespace resource.

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.

      • (string) –

        The key of the tag. May not begin with aws:.

        • (string) –

          The value of the tag.

Exceptions