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

main
ts 19 lines 803 Bytes
Raw
1 import * as appintegrations from "@distilled.cloud/aws/appintegrations";
2 import * as Layer from "effect/Layer";
3 import { makeAppIntegrationsAccountHttpBinding } from "./BindingHttp.ts";
4 import { ListDataIntegrations } from "./ListDataIntegrations.ts";
5
6 /**
7 * HTTP implementation of {@link ListDataIntegrations}. At deploy time it
8 * grants `app-integrations:ListDataIntegrations`; at runtime it calls the
9 * AppIntegrations API with the host Function's credentials. Provide this
10 * layer on the Function using the binding.
11 */
12 export const ListDataIntegrationsHttp = Layer.effect(
13 ListDataIntegrations,
14 makeAppIntegrationsAccountHttpBinding({
15 name: "ListDataIntegrations",
16 operation: appintegrations.listDataIntegrations,
17 iamActions: ["app-integrations:ListDataIntegrations"],
18 }),
19 );