Skip to content

DeleteSnapshot

Source: src/AWS/RedshiftServerless/DeleteSnapshot.ts

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

Deletes a manual snapshot — the cleanup half of a snapshot-rotation job. Provide the implementation with Effect.provide(AWS.RedshiftServerless.DeleteSnapshotHttp).

// init — resolve the runtime client
const deleteSnapshot = yield* AWS.RedshiftServerless.DeleteSnapshot();
yield* deleteSnapshot({ snapshotName: "pre-migration-1" });