1import * as appflow from "@distilled.cloud/aws/appflow";
2import * as Layer from "effect/Layer";
3import { makeAppFlowHttpBinding } from "./BindingHttp.ts";
4import type { ConnectorProfile } from "./ConnectorProfile.ts";
5import { ListConnectorEntities } from "./ListConnectorEntities.ts";
6
7export const ListConnectorEntitiesHttp = Layer.effect(
8 ListConnectorEntities,
9 makeAppFlowHttpBinding({
10 action: "ListConnectorEntities",
11 operation: appflow.listConnectorEntities,
12 identifier: (profile: ConnectorProfile) => profile.connectorProfileName,
13 requestKey: "connectorProfileName",
14 resources: (profile: ConnectorProfile) => [profile.connectorProfileArn],
15 }),
16);