aws s3api put-object-legal-hold
This operation is not supported for directory buckets. AWS CLI reference
8 options Its page in the AWS CLI reference
Options
--bucketThe bucket name containing the object that you want to place a legal hold on.--checksum-algorithmIndicates the algorithm used to create the checksum for the object when you use the SDK.--content-md5The MD5 hash for the request body.--expected-bucket-ownerThe account ID of the expected bucket owner.--keyThe key name for the object that you want to place a legal hold on.--legal-holdContainer element for the legal hold configuration you want to apply to the specified object.--request-payerConfirms that the requester knows that they will be charged for the request.--version-idThe version ID of the object that you want to place a legal hold on.