tag_resource
async
¶
tag_resource(
resource_arn: ResourceArn,
tags: Tags,
*,
config_overrides: Optional[AsyncS3TablesClientConfig] = None,
) -> TagResourceResponse
Applies one or more user-defined tags to an Amazon S3 Tables 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 S3 resource.
For a list of S3 resources that support tagging, see Managing tags for Amazon S3 resources.
- Permissions
-
For tables, table buckets, and S3 Storage Lens for Tables configurations, you must have the
s3tables:TagResourcepermission to use this operation.
Parameters:
-
resource_arn(ResourceArn) –The Amazon Resource Name (ARN) of the Amazon S3 Tables resource that you're applying tags to. The tagged resource can be a table bucket, a table, or an S3 Storage Lens for Tables configuration. For a list of all S3 resources that support tagging, see Managing tags for Amazon S3 resources.
-
tags(Tags) –The user-defined tag that you want to add to the specified S3 Tables resource. For more information, see Tagging for cost allocation or attribute-based access control (ABAC).
Raises:
-
BadRequestException–The request is invalid or malformed.
-
ConflictException–The request conflicts with the resource's current state, such as a previous write, an existing table, or a migration that's in progress or already in the requested state. If the conflict is with a concurrent write, you can retry the request.
-
ForbiddenException–The caller isn't authorized to make the request.
-
InternalServerErrorException–The request failed due to an internal server error.
-
NotFoundException–The request was rejected because the specified resource could not be found.
-
TooManyRequestsException–The limit on the number of requests per second was exceeded.
-
UnknownServiceError–The service returned an error code this client does not model.