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 { DescribeConnectorEntity } from "./DescribeConnectorEntity.ts";
6
7export const DescribeConnectorEntityHttp = Layer.effect(
8 DescribeConnectorEntity,
9 makeAppFlowHttpBinding({
10 action: "DescribeConnectorEntity",
11 operation: appflow.describeConnectorEntity,
12 identifier: (profile: ConnectorProfile) => profile.connectorProfileName,
13 requestKey: "connectorProfileName",
14 resources: (profile: ConnectorProfile) => [profile.connectorProfileArn],
15 }),
16);