/
usr
/
lib
/
python3
/
dist-packages
/
awscli
/
examples
/
s3api
/
Upload File
HOME
**To apply a Legal Hold to an object** The following ``put-object-legal-hold`` example sets a Legal Hold on the object ``doc1.rtf``. :: aws s3api put-object-legal-hold \ --bucket my-bucket-with-object-lock \ --key doc1.rtf \ --legal-hold Status=ON This command produces no output.