S3Vectors / Client / tag_resource

tag_resource

S3Vectors.Client.tag_resource(**kwargs)

Applies one or more user-defined tags to an Amazon S3 Vectors resource or updates existing tags. Each tag is a label consisting of a key and value pair. Tags can help you organize, track costs for, and control access to your resources. You can add up to 50 tags for each resource.

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:TagResource permission to use this operation.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    resourceArn='string',
    tags={
        'string': 'string'
    }
)
Parameters:
  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the Amazon S3 Vectors resource that you’re applying tags to. The tagged resource can be a vector bucket or a vector index.

  • tags (dict) –

    [REQUIRED]

    The user-defined tag that you want to add to the specified S3 Vectors resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).

    • (string) –

      • (string) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • S3Vectors.Client.exceptions.ValidationException

  • S3Vectors.Client.exceptions.ServiceUnavailableException

  • S3Vectors.Client.exceptions.TooManyRequestsException

  • S3Vectors.Client.exceptions.InternalServerException

  • S3Vectors.Client.exceptions.AccessDeniedException

  • S3Vectors.Client.exceptions.RequestTimeoutException

  • S3Vectors.Client.exceptions.NotFoundException

  • S3Vectors.Client.exceptions.ConflictException