HEX
Server: Apache
System: Linux vps28526 6.8.0-79-generic #79~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug 15 16:54:53 UTC 2 x86_64
User: heewonvps_17 (6705002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/awscli/examples/networkmanager/put-object-retention.rst
**To set an object retention configuration for an object**

The following ``put-object-retention`` example sets an object retention configuration for the specified object until 2025-01-01. ::

    aws s3api put-object-retention \
        --bucket my-bucket-with-object-lock \
        --key doc1.rtf \
        --retention '{ "Mode": "GOVERNANCE", "RetainUntilDate": "2025-01-01T00:00:00" }'

This command produces no output.