HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/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.