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-lock-configuration.rst
Size: Mime:
**To set an object lock configuration on a bucket**

The following ``put-object-lock-configuration`` example sets a 50-day object lock on the specified bucket. ::

    aws s3api put-object-lock-configuration \
        --bucket my-bucket-with-object-lock \
        --object-lock-configuration '{ "ObjectLockEnabled": "Enabled", "Rule": { "DefaultRetention": { "Mode": "COMPLIANCE", "Days": 50 }}}'

This command produces no output.