diff --git a/docs/services/backup.md b/docs/services/backup.md index 573ca9cfe9..643cda90e4 100644 --- a/docs/services/backup.md +++ b/docs/services/backup.md @@ -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