aws s3api get-object-legal-hold
This operation is not supported for directory buckets. AWS CLI reference
5 options Its page in the AWS CLI reference
Options
--bucketThe bucket name containing the object whose legal hold status you want to retrieve.--expected-bucket-ownerThe account ID of the expected bucket owner.--keyThe key name for the object whose legal hold status you want to retrieve.--request-payerConfirms that the requester knows that they will be charged for the request.--version-idThe version ID of the object whose legal hold status you want to retrieve.