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:
GetObjectRetention
GetObjectAttributes
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);
GetObjectRetentionCommandInput for command's input shape.
input
GetObjectRetentionCommandOutput for command's response shape.
response
config for S3Client's config shape.
config
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
:GetObjectAttributes
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);
GetObjectRetentionCommandInput for command's
input
shape.GetObjectRetentionCommandOutput for command's
response
shape.config for S3Client's
config
shape.