1import * as appintegrations from "@distilled.cloud/aws/appintegrations";
2import * as Layer from "effect/Layer";
3import { makeAppIntegrationsAccountHttpBinding } from "./BindingHttp.ts";
4import { 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 */
12export const ListDataIntegrationsHttp = Layer.effect(
13 ListDataIntegrations,
14 makeAppIntegrationsAccountHttpBinding({
15 name: "ListDataIntegrations",
16 operation: appintegrations.listDataIntegrations,
17 iamActions: ["app-integrations:ListDataIntegrations"],
18 }),
19);