Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
awscli / awscli / examples / s3api / put-object-legal-hold.rst
Size: Mime:
**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.