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