Options
All
  • Public
  • Public/Protected
  • All
Menu

Class PutObjectLegalHoldCommand

Applies a Legal Hold configuration to the specified object. For more information, see Locking Objects.

This action is not supported by Amazon S3 on Outposts.

example

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

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

PutObjectLegalHoldCommandInput for command's input shape.

see

PutObjectLegalHoldCommandOutput for command's response shape.

see

config for S3Client's config shape.

Hierarchy

Implements

Index

Constructors

Properties

Constructors

constructor

Properties

Readonly input

input: PutObjectLegalHoldCommandInput

Readonly middlewareStack