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

main
ts 33 lines 1.08 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 UpdateMapRunRequest extends sfn.UpdateMapRunInput {}
7
8 /**
9 * Runtime binding for `states:UpdateMapRun`.
10 *
11 * Adjusts a running Distributed Map Run's `maxConcurrency` and tolerated
12 * failure thresholds in place. IAM access is scoped to Map Runs of the
13 * bound {@link StateMachine}.
14 * ### Distributed Map Runs
15 * **Example:** Throttle a running Map Run
16 * ```typescript
17 * const updateMapRun = yield* StepFunctions.UpdateMapRun(machine);
18 *
19 * yield* updateMapRun({ mapRunArn, maxConcurrency: 10 });
20 * ```
21 *
22 * @binding
23 */
24 export interface UpdateMapRun extends Binding.Service<
25 UpdateMapRun,
26 "AWS.StepFunctions.UpdateMapRun",
27 (
28 stateMachine: StateMachine,
29 ) => Effect.Effect<
30 (request: UpdateMapRunRequest) => Effect.Effect<sfn.UpdateMapRunOutput, sfn.UpdateMapRunError>
31 >
32 > {}
33 export const UpdateMapRun = Binding.Service<UpdateMapRun>("AWS.StepFunctions.UpdateMapRun");