ListTagsForResource
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.
This action only returns information about resources that the calling principle has IAM permissions to access. For example, consider a case where a user only has permission to access one of three resources. When the user calls the this action, the response will only include the one resource that the user has permission to access instead of all three resources. If the user doesn’t have access to any of the resources an empty result is returned.
Note
The AWSElasticBeanstalkReadOnly managed policy allows operators to view information about resources related to Elastic Beanstalk. For more information, see Managing Elastic Beanstalk user policies in the AWS Elastic Beanstalk Developer Guide. For detailed instructions to attach a policy to a user or group, see the section Controlling access with managed policies in the same topic.
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
- ResourceArn
-
The Amazon Resource Name (ARN) of the resouce for which a tag list is requested.
Must be the ARN of an Elastic Beanstalk resource.
Type: String
Required: Yes
Response Elements
The following elements are returned by the service.
- ResourceArn
-
The Amazon Resource Name (ARN) of the resource for which a tag list was requested.
Type: String
- ResourceTags.member.N
-
A list of tag key-value pairs.
Type: Array of Tag objects
Errors
For information about the errors that are common to all actions, see Common Errors.
- InsufficientPrivileges
-
The specified account does not have sufficient privileges for one or more AWS services.
HTTP Status Code: 403
- ResourceNotFound
-
A resource doesn't exist for the specified Amazon Resource Name (ARN).
HTTP Status Code: 400
- ResourceTypeNotSupported
-
The type of the specified Amazon Resource Name (ARN) isn't supported for this operation.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: