Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GetObjectRetentionCommand

Retrieves an object's retention settings. For more information, see Locking Objects.

This action is not supported by Amazon S3 on Outposts.

The following action is related to GetObjectRetention:

example

Use a bare-bones client and the command you need to make an API call.

import { S3Client, GetObjectRetentionCommand } from "@aws-sdk/client-s3"; // ES Modules import
// const { S3Client, GetObjectRetentionCommand } = require("@aws-sdk/client-s3"); // CommonJS import
const client = new S3Client(config);
const command = new GetObjectRetentionCommand(input);
const response = await client.send(command);
see

GetObjectRetentionCommandInput for command's input shape.

see

GetObjectRetentionCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: GetObjectRetentionCommandInput

Readonly middlewareStack