Skip to content

RestoreFromSnapshot

Source: src/AWS/RedshiftServerless/RestoreFromSnapshot.ts

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

Restores the bound Namespace from a snapshot — a disaster-recovery runbook step. The namespace name is injected from the binding; pass the serving workgroup and the snapshot to restore. Provide the implementation with Effect.provide(AWS.RedshiftServerless.RestoreFromSnapshotHttp).

// init — resolve the runtime client
const restoreFromSnapshot = yield* AWS.RedshiftServerless.RestoreFromSnapshot(namespace);
yield* restoreFromSnapshot({
workgroupName,
snapshotName: "pre-migration-1",
});