@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 20 lines 874 Bytes
Raw
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 { CopyServerlessCacheSnapshot } from "./CopyServerlessCacheSnapshot.ts";
8
9 export const CopyServerlessCacheSnapshotHttp = Layer.effect(
10 CopyServerlessCacheSnapshot,
11 makeElastiCacheAccountHttpBinding({
12 tag: "AWS.ElastiCache.CopyServerlessCacheSnapshot",
13 operation: elasticache.copyServerlessCacheSnapshot,
14 // AddTagsToResource authorizes tag-on-create for the target snapshot.
15 actions: ["elasticache:CopyServerlessCacheSnapshot", "elasticache:AddTagsToResource"],
16 // The action authorizes against both the source and target snapshots,
17 // whose names are runtime data.
18 resources: [SERVERLESS_SNAPSHOT_ARN_WILDCARD],
19 }),
20 );