| 1 | import * as appflow from "@distilled.cloud/aws/appflow"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeAppFlowHttpBinding } from "./BindingHttp.ts"; |
| 4 | import type { ConnectorProfile } from "./ConnectorProfile.ts"; |
| 5 | import { DescribeConnectorEntity } from "./DescribeConnectorEntity.ts"; |
| 6 | |
| 7 | export 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 | ); |