Return the tags applied to an AWS Elastic Beanstalk resource. The response contains a list of tag key-value pairs.
Elastic Beanstalk supports tagging of all of its resources. For details about resource tagging, see Tagging Application Resources.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
ResourceArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.
Must be the ARN of an Elastic Beanstalk resource.
{
'ResourceArn': 'string',
'ResourceTags': [
{
'Key': 'string',
'Value': 'string'
},
]
}
Response Structure
The Amazon Resource Name (ARN) of the resource for which a tag list was requested.
A list of tag key-value pairs.
Describes a tag applied to a resource in an environment.
The key of the tag.
The value of the tag.
Exceptions
ElasticBeanstalk.Client.exceptions.InsufficientPrivilegesException
ElasticBeanstalk.Client.exceptions.ResourceNotFoundException
ElasticBeanstalk.Client.exceptions.ResourceTypeNotSupportedException