Skip to content

CreateSnapshot

Source: src/AWS/MemoryDB/CreateSnapshot.ts

Runtime binding for the CreateSnapshot operation (IAM actions memorydb:CreateSnapshot + memorydb:TagResource), scoped to one Cluster.

Takes an on-demand snapshot of the bound cluster — e.g. a pre-migration backup from an operational Lambda. Provide the implementation with Effect.provide(AWS.MemoryDB.CreateSnapshotHttp).

const createSnapshot = yield* MemoryDB.CreateSnapshot(cluster);
const result = yield* createSnapshot({ SnapshotName: "pre-migration" });
// result.Snapshot.Status → "creating"