Skip to content

UpdateSnapshot

Source: src/AWS/RedshiftServerless/UpdateSnapshot.ts

Runtime binding for the UpdateSnapshot operation (IAM actions redshift-serverless:UpdateSnapshot).

Changes a snapshot’s retention period — e.g. extending retention on a snapshot that an audit flagged for preservation. Provide the implementation with Effect.provide(AWS.RedshiftServerless.UpdateSnapshotHttp).

// init — resolve the runtime client
const updateSnapshot = yield* AWS.RedshiftServerless.UpdateSnapshot();
yield* updateSnapshot({ snapshotName: "pre-migration-1", retentionPeriod: 30 });