concept Data & storage
Object retention locks and legal holds
In versioned S3, an expired retention deadline does not authorize deletion. A legal hold still blocks removal of that version, and with the hold off, deletion still requires permission.
What it means
In a versioning-enabled Amazon S3 bucket, Object Lock protects individual object versions. A fixed retention deadline and a legal hold are separate protections: the deadline can pass while the hold remains on. The hold still blocks deletion of that version. S3 Object Lock
To tell whether deletion is allowed, you also need to know the retention mode and whether the caller has permission for the operation. Governance and compliance modes differ while retention is active: an authorized governance exception can matter in governance mode, but it does not override compliance retention. S3 retention modes In the simulation, Already-established governance exception represents evidence that all conditions for that exception were met. Selecting Yes does not grant it.
Try it
Use the synthetic choices only. The simulation does not check credentials, change a hold, create a marker, or delete data.
Object retention locks and legal holds
Change synthetic retention mode/deadline, hold and caller capability; show allowed, blocked or unknown only under a sourced provider-specific policy.
Local simulation only: no device, service, stored object or database is changed, and no real operation is authorized.
Known blocker: legal-hold.
Technical version policy, not real authorization
- Declared-policy outcome
- blocked
- Known blocker
- legal-hold
- Protected version actually removed
- No
Evaluated evidence
- Simulated S3 operation
- delete-version
- Fixed-retention mode
- governance
- Retention evidence
- expired
- Version legal-hold flag
- on
- Other operation permissions
- yes
- Already-established governance exception
- no
Fixed-retention S3 policy subset; no real operation or compliance assessment.
About this model
Every input is local synthetic evidence. Numbers stay as raw text until this model validates them. The shown evaluated values come from the same result as the explanation.
Presets replace the entire scenario. Reset restores all starting fields, scenario selection and model state; it does not change the open or closed state of this help or article FAQ.
No external request, device command, stored-input history or measurement is performed.
- Start with
Simulated S3 operationset todelete-version,Fixed-retention modetogovernance, andRetention evidencetoexpired.Other operation permissionsisYes, and there is no established exception. The deadline is no longer a blocker, butVersion legal-hold flagison. The declared-policy outcome isblocked, withlegal-holdas the known blocker. - Choose Create a marker, not delete a version. Only the operation changes, to
create-marker. A delete marker changes what a lookup without a version ID finds; it does not remove the underlying data version. S3 versioning S3 Object Lock With permission stipulated for the marker operation, the outcome isallowed-by-declared-policy, andProtected version actually removedis false. The hold has not been lifted. - Choose Inspect the evidence boundary. The operation is back to
delete-version, but the hold flag is unknown. Even with expired retention and permission set toYes, the result isunknown. Set the hold flag tooff: deletion is now allowed by the declared policy. Leave it off and changeRetention evidencefromexpiredtoUnknown / evidence unavailable. The result returns tounknown, not allowed: you no longer know whether governance retention is active.
A known blocker settles the question even if other evidence is missing. For example, with retention unknown, setting Other operation permissions to No gives blocked for permission-denied. An unknown choice is valid input; an unrecognized value is invalid and yields no verdict. Reset restores the full starting state.
In practice
Identify the operation and the exact version before interpreting a deadline. Several versions can share the same object name; a version ID distinguishes the one you mean. S3 versioning workflows For a version deletion, assess the hold, applicable fixed retention, and authorization separately. If no known blocker settles the result and the decision depends on event-based retention, stop at unknown: this model evaluates fixed deadlines only.
An allowed result describes the supplied policy conditions, not live authorization, legal compliance, or proof that a backup can be restored. An expired deadline removes one possible blocker. It neither clears a hold nor supplies missing permission.
Frequently asked questions
Editorial questions based on the listed sources and explicitly labeled local examples.
How is a hold different from a deadline?
In the fixed-date S3 subset, a retention deadline expires with time, while a legal hold remains independently effective until removed through an authorized process. The lab performs neither a real hold change nor a deletion.
Does a delete marker remove a locked version?
No. Creating a delete marker affects the current version lookup; it does not remove the protected data version. The model keeps that distinction explicit even when a marker action is permitted under the stipulated policy.
Are governance and compliance modes identical?
No. The sourced S3 modes have different authorization rules. The model represents a pre-established governance exception only as supplied evidence; it provides no bypass procedure, and that evidence does not override compliance retention.
Does an object lock replace a backup?
The example makes no backup or recoverability guarantee. It evaluates only a protected version’s deletion-policy boundary and does not prove that a usable independent copy or tested restore exists.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- Locking objects with Object Lock
Retention modes; legal hold; versions. Retention/hold apply to protected versions; legal hold is independent of fixed expiry. Governance and compliance have different authorization rules.
Checked .
- Amazon S3: How S3 Versioning works
Versioning workflows; retrieving object versions. Multiple versioned PUTs retain separate versions; an explicit version identifier selects a retained version under the applicable access conditions.
Checked .