To use this operation, you must have permission to perform the
s3:GetBucketTagging action. By default, the bucket owner has this
permission and can grant this permission to others.
GetBucketTagging has the following special error:
Error code: NoSuchTagSet
Description: There is no tag set associated with the bucket.
The following operations are related to GetBucketTagging:
Returns the tag set associated with the bucket.
To use this operation, you must have permission to perform the
s3:GetBucketTagging
action. By default, the bucket owner has this permission and can grant this permission to others.GetBucketTagging
has the following special error:Error code:
NoSuchTagSet
Description: There is no tag set associated with the bucket.
The following operations are related to
GetBucketTagging
:PutBucketTagging
DeleteBucketTagging
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetBucketTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetBucketTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetBucketTaggingCommand(input); const response = await client.send(command);
GetBucketTaggingCommandInput for command's
input
shape.GetBucketTaggingCommandOutput for command's
response
shape.config for S3Client's
config
shape.