1import * as appflow from "@distilled.cloud/aws/appflow";
2import * as Layer from "effect/Layer";
3import { makeAppFlowHttpBinding } from "./BindingHttp.ts";
4import { DescribeFlowExecutionRecords } from "./DescribeFlowExecutionRecords.ts";
5import type { Flow } from "./Flow.ts";
6
7export const DescribeFlowExecutionRecordsHttp = Layer.effect(
8 DescribeFlowExecutionRecords,
9 makeAppFlowHttpBinding({
10 action: "DescribeFlowExecutionRecords",
11 operation: appflow.describeFlowExecutionRecords,
12 identifier: (flow: Flow) => flow.flowName,
13 requestKey: "flowName",
14 resources: (flow: Flow) => [flow.flowArn],
15 }),
16);