Returns a list of resource tags associated with the resource specified by the Amazon Resource Name (ARN).
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resource. For a list of supported resources, see ResourceTag.
{
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
A list of tag key value pairs that are associated with the resource.
The tag structure that contains a tag key and value.
Note
Tagging is supported only for the following Cost Explorer resource types: AnomalyMonitor, AnomalySubscription, CostCategory.
The key that's associated with the tag.
The value that's associated with the tag.
Exceptions
CostExplorer.Client.exceptions.ResourceNotFoundException
CostExplorer.Client.exceptions.LimitExceededException