ExitAmazon S3: Object Lock retention1 / 7
Explanation

Protect a version, not an object name

How retention modes and legal holds protect object versions from deletion or replacement to meet immutable-storage requirements. · associate

S3 Object Lock provides write-once-read-many protection for individual object versions. Use it when records, training datasets, or other evidence must remain unchanged and cannot be permanently deleted during a required period. Object Lock requires S3 Versioning. Once Object Lock is enabled on a bucket, you cannot disable it or suspend versioning.

A protected version cannot be overwritten. Uploading another object with the same key creates a new version; it does not replace the protected version. A delete request without a version ID can create a delete marker, hiding the object from ordinary reads without permanently deleting the protected version. Keep the version ID when applications must retrieve the exact preserved data.

Enable Object Lock on the bucket, then configure protection for the versions you need to retain. A bucket default retention supplies a mode and duration for new versions that do not specify their own retention settings. Adding a default does not retroactively protect existing versions; configure those versions explicitly.