@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 34 lines 1.13 KB
Raw
1 import type * as sfn from "@distilled.cloud/aws/sfn";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { StateMachine } from "./StateMachine.ts";
5
6 export interface ListMapRunsRequest extends sfn.ListMapRunsInput {}
7
8 /**
9 * Runtime binding for `states:ListMapRuns`.
10 *
11 * Lists the Distributed Map Runs started by an execution of the bound
12 * {@link StateMachine} — use the returned `mapRunArn`s with
13 * `DescribeMapRun` / `UpdateMapRun`. IAM access is scoped to executions of
14 * the bound state machine.
15 * ### Distributed Map Runs
16 * **Example:** List an execution's Map Runs
17 * ```typescript
18 * const listMapRuns = yield* StepFunctions.ListMapRuns(machine);
19 *
20 * const { mapRuns } = yield* listMapRuns({ executionArn });
21 * ```
22 *
23 * @binding
24 */
25 export interface ListMapRuns extends Binding.Service<
26 ListMapRuns,
27 "AWS.StepFunctions.ListMapRuns",
28 (
29 stateMachine: StateMachine,
30 ) => Effect.Effect<
31 (request: ListMapRunsRequest) => Effect.Effect<sfn.ListMapRunsOutput, sfn.ListMapRunsError>
32 >
33 > {}
34 export const ListMapRuns = Binding.Service<ListMapRuns>("AWS.StepFunctions.ListMapRuns");