list_tags_for_resource

ElasticBeanstalk.Client.list_tags_for_resource(**kwargs)

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'
)
Parameters
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.

Return type
dict
Returns
Response Syntax
{
    'ResourceArn': 'string',
    'ResourceTags': [
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --
    • ResourceArn (string) --

      The Amazon Resource Name (ARN) of the resource for which a tag list was requested.

    • ResourceTags (list) --

      A list of tag key-value pairs.

      • (dict) --

        Describes a tag applied to a resource in an environment.

        • Key (string) --

          The key of the tag.

        • Value (string) --

          The value of the tag.

Exceptions

  • ElasticBeanstalk.Client.exceptions.InsufficientPrivilegesException
  • ElasticBeanstalk.Client.exceptions.ResourceNotFoundException
  • ElasticBeanstalk.Client.exceptions.ResourceTypeNotSupportedException