S3Files / Client / list_tags_for_resource
list_tags_for_resource¶
- S3Files.Client.list_tags_for_resource(**kwargs)¶
Lists all tags for S3 Files resources.
See also: AWS API Documentation
Request Syntax
response = client.list_tags_for_resource( resourceId='string', maxResults=123, nextToken='string' )
- Parameters:
resourceId (string) –
[REQUIRED]
The ID or Amazon Resource Name (ARN) of the resource to list tags for.
maxResults (integer) – The maximum number of tags to return in a single response.
nextToken (string) – A pagination token returned from a previous call to continue listing tags.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': [ { 'key': 'string', 'value': 'string' }, ], 'nextToken': 'string' }
Response Structure
(dict) –
tags (list) –
An array of tags associated with the resource.
(dict) –
A key-value pair for resource tagging.
key (string) –
The tag key. The key can’t start with
aws:.value (string) –
The tag value.
nextToken (string) –
A pagination token to use in a subsequent request if more results are available.
Exceptions