Lists the tags attached to the resource.
Required permissions:rolesanywhere:ListTagsForResource
.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource(
resourceArn='string'
)
[REQUIRED]
The ARN of the resource.
{
'tags': [
{
'key': 'string',
'value': 'string'
},
]
}
Response Structure
A list of tags attached to the resource.
A label that consists of a key and value you define.
The tag key.
The tag value.
Exceptions
IAMRolesAnywhere.Client.exceptions.ValidationException
IAMRolesAnywhere.Client.exceptions.ResourceNotFoundException
IAMRolesAnywhere.Client.exceptions.AccessDeniedException