S3Vectors / Client / list_tags_for_resource
list_tags_for_resource¶
- S3Vectors.Client.list_tags_for_resource(**kwargs)¶
Lists all of the tags applied to a specified Amazon S3 Vectors resource. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to resources.
Note
For a list of S3 resources that support tagging, see Managing tags for Amazon S3 resources.
Permissions
For vector buckets and vector indexes, you must have the
s3vectors:ListTagsForResourcepermission to use this operation.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 Amazon S3 Vectors resource that you want to list tags for. The tagged resource can be a vector bucket or a vector index.
- Return type:
dict
- Returns:
Response Syntax
{ 'tags': { 'string': 'string' } }
Response Structure
(dict) –
tags (dict) –
The user-defined tags that are applied to the S3 Vectors resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
(string) –
(string) –
Exceptions
S3Vectors.Client.exceptions.ValidationExceptionS3Vectors.Client.exceptions.ServiceUnavailableExceptionS3Vectors.Client.exceptions.TooManyRequestsExceptionS3Vectors.Client.exceptions.InternalServerExceptionS3Vectors.Client.exceptions.AccessDeniedExceptionS3Vectors.Client.exceptions.RequestTimeoutExceptionS3Vectors.Client.exceptions.NotFoundException