docs(backup): record the three vault decisions that lived only in javadoc

AGENTS.md asks for intentional deviations to be documented, and three of this
branch's user-visible decisions were reachable only by reading the source or the
commit log.

The omitted-Policy behaviour is the one a user is most likely to be surprised
by, and it is written with the same hedge the javadoc carries: AWS's behaviour
is undocumented and unmeasured, and clearing is the choice we took, not an
observed AWS behaviour. It is not upgraded to a measured claim here.

The other two are the MissingParameterValueException versus
InvalidParameterValueException split on PutBackupVaultNotifications, and the
per-field Vault Lock day limits, including that MinRetentionDays deliberately
carries no maximum because AWS documents none.

Documentation only. backup.md is hand-written, not generated, so docs-sync has
nothing to say about it; docs-check passes once this is committed, because its
last gate is git diff --exit-code over docs/.
This commit is contained in:
Allen Sanborn committed 2026-09-25 10:11:30 -05:00
1 parent fc0f64dfb9
commit 3cb81fd412
1 file changed
+20
+20
View File
@@ -132,9 +132,29 @@ Actual backup is simulated — no data is read from or written to the referenced
- **A lock does not stop the vault being deleted.** It protects the recovery points, so an
empty vault can be deleted even under a compliance lock. The non-empty rule above is the
one that refuses.
- **The Vault Lock day limits are per field, because AWS documents them per field.**
`ChangeableForDays` must be 3 or greater and at most 36,500. `MaxRetentionDays` is at
most 36,500. `MinRetentionDays` has a documented minimum of 1 day and **no documented
maximum**, so Floci applies none: bounding it would refuse a value real AWS accepts.
`MaxRetentionDays` below `MinRetentionDays` is rejected when both are supplied.
- **PutBackupVaultNotifications** rejects any `BackupVaultEvents` value outside the
documented set with `InvalidParameterValueException` (400), rather than storing it. All
30 documented values are accepted, including the ones AWS marks deprecated.
- **A missing parameter and an empty one are different errors.**
`PutBackupVaultNotifications` returns `MissingParameterValueException` (400) when
`SNSTopicArn` or `BackupVaultEvents` is absent, which is the error AWS lists in that
operation's Errors section, and `InvalidParameterValueException` (400) when one is
present but unusable (`"SNSTopicArn": ""`, or `"BackupVaultEvents": []`). An SDK maps
the two onto different typed exceptions, so collapsing them hands the caller an error
real AWS would not have returned.
- **`PutBackupVaultAccessPolicy` accepts a request that omits `Policy`.** AWS documents
`Policy` as `Required: No`, so refusing one would fail a call real AWS accepts. What
AWS then stores is **not documented, and we have not measured it**; Floci **clears**
the stored policy, so a subsequent `GetBackupVaultAccessPolicy` returns
`ResourceNotFoundException` (400). That is a deliberate choice rather than an observed
AWS behaviour: it leaves the vault carrying exactly the policy the request carried,
instead of retaining one the caller did not send. A `Policy` that is present but empty
is a different case and is rejected with `InvalidParameterValueException` (400).
- Deleting an access policy or notification configuration that was never set is a no-op,
so a destroy re-run does not fail.
- The access policy and notification configuration are **not** returned by