Skip to content

DeleteSnapshot

Source: src/AWS/MemoryDB/DeleteSnapshot.ts

Runtime binding for the DeleteSnapshot operation (IAM action memorydb:DeleteSnapshot on the snapshot ARN wildcard — snapshot names are runtime data).

Deletes a snapshot by name — e.g. pruning old on-demand backups from a scheduled cleanup Lambda. Provide the implementation with Effect.provide(AWS.MemoryDB.DeleteSnapshotHttp).

const deleteSnapshot = yield* MemoryDB.DeleteSnapshot();
yield* deleteSnapshot({ SnapshotName: "pre-migration" }).pipe(
Effect.catchTag("SnapshotNotFoundFault", () => Effect.void),
);