IoT / Client / list_tags_for_resource
list_tags_for_resource#
- IoT.Client.list_tags_for_resource(**kwargs)#
Lists the tags (metadata) you have assigned to the resource.
Requires permission to access the ListTagsForResource action.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceArn='string', nextToken='string' )
- Parameters:
resourceArn (string) –
[REQUIRED]
The ARN of the resource.
nextToken (string) – To retrieve the next set of results, the
nextToken
value from a previous response; otherwise null to receive the first set of results.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
tags (list) –
The list of tags assigned to the resource.
(dict) –
A set of key/value pairs that are used to manage the resource.
Key (string) –
The tag’s key.
Value (string) –
The tag’s value.
nextToken (string) –
The token to use to get the next set of results, or null if there are no additional results.
Exceptions