The best way to control Claude Code, Codex and more from any computer or phone

main
ts 44 lines 1.47 KB
Raw
1 import type * as mwaa from "@distilled.cloud/aws/mwaa-serverless";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Workflow } from "./Workflow.ts";
5
6 /**
7 * Request accepted by the {@link ListWorkflowRuns} runtime callable. The
8 * `WorkflowArn` is injected from the bound {@link Workflow}.
9 */
10 export type ListWorkflowRunsInput = Omit<mwaa.ListWorkflowRunsRequest, "WorkflowArn">;
11
12 /**
13 * Runtime binding for `airflow-serverless:ListWorkflowRuns`.
14 *
15 * Lists runs of the bound {@link Workflow}, optionally filtered to a
16 * specific workflow version. Provide the implementation with
17 * `Effect.provide(AWS.MWAAServerless.ListWorkflowRunsHttp)`.
18 * ### Observing Runs
19 * **Example:** List Recent Runs
20 * ```typescript
21 * // init — bind the operation to the workflow
22 * const listWorkflowRuns = yield* AWS.MWAAServerless.ListWorkflowRuns(workflow);
23 *
24 * // runtime
25 * const { WorkflowRuns } = yield* listWorkflowRuns({ MaxResults: 10 });
26 * yield* Effect.log(`found ${WorkflowRuns?.length ?? 0} runs`);
27 * ```
28 *
29 * @binding
30 */
31 export interface ListWorkflowRuns extends Binding.Service<
32 ListWorkflowRuns,
33 "AWS.MWAAServerless.ListWorkflowRuns",
34 (
35 workflow: Workflow,
36 ) => Effect.Effect<
37 (
38 request?: ListWorkflowRunsInput,
39 ) => Effect.Effect<mwaa.ListWorkflowRunsResponse, mwaa.ListWorkflowRunsError>
40 >
41 > {}
42 export const ListWorkflowRuns = Binding.Service<ListWorkflowRuns>(
43 "AWS.MWAAServerless.ListWorkflowRuns",
44 );