| 1 | import * as memorydb from "@distilled.cloud/aws/memorydb"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { |
| 4 | makeMemoryDBAccountHttpBinding, |
| 5 | SNAPSHOT_ARN_WILDCARD, |
| 6 | } from "./BindingHttp.ts"; |
| 7 | import { DeleteSnapshot } from "./DeleteSnapshot.ts"; |
| 8 | |
| 9 | export const DeleteSnapshotHttp = Layer.effect( |
| 10 | DeleteSnapshot, |
| 11 | makeMemoryDBAccountHttpBinding({ |
| 12 | tag: "AWS.MemoryDB.DeleteSnapshot", |
| 13 | operation: memorydb.deleteSnapshot, |
| 14 | actions: ["memorydb:DeleteSnapshot"], |
| 15 | resources: [SNAPSHOT_ARN_WILDCARD], |
| 16 | }), |
| 17 | ); |