Jump to Content

Class GetObjectLockConfigurationCommandProtected

Gets the Object Lock configuration for a bucket. The rule specified in the Object Lock configuration will be applied by default to every new object placed in the specified bucket. For more information, see Locking Objects.

The following action is related to GetObjectLockConfiguration:

Example

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

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

Param

GetObjectLockConfigurationCommandInput

Returns

GetObjectLockConfigurationCommandOutput

See

Hierarchy

Constructors

Properties

Methods