1import * as elasticache from "@distilled.cloud/aws/elasticache";
2import * as Layer from "effect/Layer";
3import {
4 makeElastiCacheAccountHttpBinding,
5 SERVERLESS_SNAPSHOT_ARN_WILDCARD,
6} from "./BindingHttp.ts";
7import { DeleteServerlessCacheSnapshot } from "./DeleteServerlessCacheSnapshot.ts";
8
9export 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);