fix(rds): accept a ModifyDBSnapshot that names nothing to change (#8633)

ModifyDBSnapshot refused a request naming neither EngineVersion nor
OptionGroupName with InvalidParameterCombination, "At least one snapshot
attribute must be specified.", a message AWS does not use. The model
requires only DBSnapshotIdentifier, and neither the API reference nor the
User Guide's snapshot upgrade pages tie any error to a request with nothing
to change, so such a request now returns the snapshot unchanged. A missing
snapshot and one that is not available are still refused as before.

The RDS docs record this as Floci's reading of an undocumented case.

Closes #4083
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-16 15:41:03 -04:00
1 parent a35fcfd9da
commit 16b0b516a0
4 files changed
+28 -10

No files matched your search

@@ -628,6 +628,8 @@ class RdsControlPlaneTest {
.engineVersion("16.4"))
.dbSnapshot();
assertThat(modified.engineVersion()).isEqualTo("16.4");
DBSnapshot unchanged = rds.modifyDBSnapshot(b -> b.dbSnapshotIdentifier(snapshotName)).dbSnapshot();
assertThat(unchanged.engineVersion()).isEqualTo("16.4");
DBSnapshot deleted = rds.deleteDBSnapshot(b -> b.dbSnapshotIdentifier(snapshotName)).dbSnapshot();
assertThat(deleted.status()).isEqualTo("deleted");