| 1 | import * as elasticache from "@distilled.cloud/aws/elasticache"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { |
| 4 | makeElastiCacheAccountHttpBinding, |
| 5 | SERVERLESS_SNAPSHOT_ARN_WILDCARD, |
| 6 | } from "./BindingHttp.ts"; |
| 7 | import { DeleteServerlessCacheSnapshot } from "./DeleteServerlessCacheSnapshot.ts"; |
| 8 | |
| 9 | export const DeleteServerlessCacheSnapshotHttp = Layer.effect( |
| 10 | DeleteServerlessCacheSnapshot, |
| 11 | makeElastiCacheAccountHttpBinding({ |
| 12 | tag: "AWS.ElastiCache.DeleteServerlessCacheSnapshot", |
| 13 | operation: elasticache.deleteServerlessCacheSnapshot, |
| 14 | actions: ["elasticache:DeleteServerlessCacheSnapshot"], |
| 15 | // Snapshot names are runtime data. |
| 16 | resources: [SERVERLESS_SNAPSHOT_ARN_WILDCARD], |
| 17 | }), |
| 18 | ); |