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

main
ts 40 lines 1.09 KB
Raw
1 import * as wafv2 from "@distilled.cloud/aws/wafv2";
2 import * as Layer from "effect/Layer";
3 import { CreateAPIKey, DeleteAPIKey, GetDecryptedAPIKey, ListAPIKeys } from "./APIKeys.ts";
4 import { makeWafv2AccountHttpBinding } from "./BindingHttp.ts";
5
6 export const CreateAPIKeyHttp = Layer.effect(
7 CreateAPIKey,
8 makeWafv2AccountHttpBinding({
9 tag: "AWS.WAFv2.CreateAPIKey",
10 operation: wafv2.createAPIKey,
11 actions: ["wafv2:CreateAPIKey"],
12 }),
13 );
14
15 export const GetDecryptedAPIKeyHttp = Layer.effect(
16 GetDecryptedAPIKey,
17 makeWafv2AccountHttpBinding({
18 tag: "AWS.WAFv2.GetDecryptedAPIKey",
19 operation: wafv2.getDecryptedAPIKey,
20 actions: ["wafv2:GetDecryptedAPIKey"],
21 }),
22 );
23
24 export const ListAPIKeysHttp = Layer.effect(
25 ListAPIKeys,
26 makeWafv2AccountHttpBinding({
27 tag: "AWS.WAFv2.ListAPIKeys",
28 operation: wafv2.listAPIKeys,
29 actions: ["wafv2:ListAPIKeys"],
30 }),
31 );
32
33 export const DeleteAPIKeyHttp = Layer.effect(
34 DeleteAPIKey,
35 makeWafv2AccountHttpBinding({
36 tag: "AWS.WAFv2.DeleteAPIKey",
37 operation: wafv2.deleteAPIKey,
38 actions: ["wafv2:DeleteAPIKey"],
39 }),
40 );