Skip to main content
This is currently supported for buckets located in the US and APAC (ap-southeast-1).
To enable this feature, object lock MUST be enabled at bucket creation time.
Confirm this is set properly.
Versioning is automatically enabled as a result.
Upload an object.
Now set the object retention policy.
And confirm it’s set properly.
Deleting the object produces an expected error.
For additional information, please consult S3’s API reference.