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

main
ts 16 lines 661 Bytes
Raw
1 import * as memorydb from "@distilled.cloud/aws/memorydb";
2 import * as Layer from "effect/Layer";
3 import { makeMemoryDBAccountHttpBinding, SNAPSHOT_ARN_WILDCARD } from "./BindingHttp.ts";
4 import { CopySnapshot } from "./CopySnapshot.ts";
5
6 export const CopySnapshotHttp = Layer.effect(
7 CopySnapshot,
8 makeMemoryDBAccountHttpBinding({
9 tag: "AWS.MemoryDB.CopySnapshot",
10 operation: memorydb.copySnapshot,
11 // TagResource authorizes tag-on-create for the target snapshot.
12 actions: ["memorydb:CopySnapshot", "memorydb:TagResource"],
13 // Both the source and target snapshot names are runtime data.
14 resources: [SNAPSHOT_ARN_WILDCARD],
15 }),
16 );