feat(redshift-serverless): add UpdateSnapshot (#5537)

Change a snapshot's retentionPeriod (-1 for indefinite) with the same validation as CreateSnapshot; an omitted period leaves the snapshot unchanged.
This commit is contained in:
Vũ Thế Huy authored and GitHub committed 2026-10-13 21:51:23 -04:00
1 parent dd0f40fcbb
commit a95b01020b
8 files changed
+104 -1

No files matched your search

@@ -188,6 +188,9 @@ class RedshiftServerlessTest {
assertThat(client.getSnapshot(request -> request.snapshotArn(created.snapshotArn())).snapshot()
.snapshotName()).isEqualTo(snapshotName);
assertThat(client.updateSnapshot(request -> request
.snapshotName(snapshotName).retentionPeriod(30)).snapshot().snapshotRetentionPeriod())
.isEqualTo(30);
assertThat(client.listSnapshots(request -> request.namespaceName(namespaceName)).snapshots())
.extracting(Snapshot::snapshotName)
.containsExactly(snapshotName);