mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 16:11:48 -05:00
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:
1 parent
dd0f40fcbb
commit
a95b01020b
8 files changed
+104
-1
No files matched your search
+3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user