Returns the tag-set of an object. You send the GET request against the tagging
subresource associated with the object.
To use this operation, you must have permission to perform the
s3:GetObjectTagging action. By default, the GET action returns
information about current version of an object. For a versioned bucket, you can have
multiple versions of an object in your bucket. To retrieve tags of any other version, use
the versionId query parameter. You also need permission for the
s3:GetObjectVersionTagging action.
By default, the bucket owner has this permission and can grant this permission to
others.
For information about the Amazon S3 object tagging feature, see Object Tagging.
The following actions are related to GetObjectTagging:
Returns the tag-set of an object. You send the GET request against the tagging subresource associated with the object.
To use this operation, you must have permission to perform the
s3:GetObjectTagging
action. By default, the GET action returns information about current version of an object. For a versioned bucket, you can have multiple versions of an object in your bucket. To retrieve tags of any other version, use the versionId query parameter. You also need permission for thes3:GetObjectVersionTagging
action.By default, the bucket owner has this permission and can grant this permission to others.
For information about the Amazon S3 object tagging feature, see Object Tagging.
The following actions are related to
GetObjectTagging
:DeleteObjectTagging
GetObjectAttributes
PutObjectTagging
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetObjectTaggingCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetObjectTaggingCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetObjectTaggingCommand(input); const response = await client.send(command);
GetObjectTaggingCommandInput for command's
input
shape.GetObjectTaggingCommandOutput for command's
response
shape.config for S3Client's
config
shape.