Gets an object's current legal hold status. For more information, see Locking Objects.
This action is not supported by Amazon S3 on Outposts.
The following action is related to GetObjectLegalHold:
GetObjectLegalHold
GetObjectAttributes
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetObjectLegalHoldCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetObjectLegalHoldCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetObjectLegalHoldCommand(input); const response = await client.send(command);
GetObjectLegalHoldCommandInput for command's input shape.
input
GetObjectLegalHoldCommandOutput for command's response shape.
response
config for S3Client's config shape.
config
Gets an object's current legal hold status. For more information, see Locking Objects.
This action is not supported by Amazon S3 on Outposts.
The following action is related to
GetObjectLegalHold
:GetObjectAttributes
Use a bare-bones client and the command you need to make an API call.
import { S3Client, GetObjectLegalHoldCommand } from "@aws-sdk/client-s3"; // ES Modules import // const { S3Client, GetObjectLegalHoldCommand } = require("@aws-sdk/client-s3"); // CommonJS import const client = new S3Client(config); const command = new GetObjectLegalHoldCommand(input); const response = await client.send(command);
GetObjectLegalHoldCommandInput for command's
input
shape.GetObjectLegalHoldCommandOutput for command's
response
shape.config for S3Client's
config
shape.