Overview of S3 Object Lock modes
S3 Object Lock makes objects immutable to prevent unauthorized deletion or encryption (e.g., by ransomware). There are two primary modes:
- Governance Mode: Objects can be deleted by users who possess the
s3:BypassGovernanceRetentionpermission. - Compliance Mode: Objects cannot be deleted by any user until the specified retention date has passed. The retention period can be extended, but it cannot be reduced, and the mode cannot be changed to Governance mode once set.