Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetObjectTaggingCommand

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 action is related to GetObjectTagging:

example

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);
see

GetObjectTaggingCommandInput for command's input shape.

see

GetObjectTaggingCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: GetObjectTaggingCommandInput

Readonly middlewareStack