@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, 06:00 UTC

main
ts 35 lines 1.22 KB
Raw
1 import type * as fis from "@distilled.cloud/aws/fis";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `fis:StopExperiment`.
7 *
8 * Stops a running experiment — the manual abort switch for a
9 * chaos-engineering run that a monitoring function decides has gone far
10 * enough. Experiments are created dynamically, so this is an account-level
11 * binding addressed by experiment id. Provide the implementation with
12 * `Effect.provide(AWS.FIS.StopExperimentHttp)`.
13 * ### Running Experiments
14 * **Example:** Abort a Running Experiment
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const stopExperiment = yield* AWS.FIS.StopExperiment();
18 *
19 * // runtime
20 * const { experiment } = yield* stopExperiment({ id: experimentId });
21 * console.log(experiment?.state?.status); // "stopping"
22 * ```
23 *
24 * @binding
25 */
26 export interface StopExperiment extends Binding.Service<
27 StopExperiment,
28 "AWS.FIS.StopExperiment",
29 () => Effect.Effect<
30 (
31 request: fis.StopExperimentRequest,
32 ) => Effect.Effect<fis.StopExperimentResponse, fis.StopExperimentError>
33 >
34 > {}
35 export const StopExperiment = Binding.Service<StopExperiment>("AWS.FIS.StopExperiment");