@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 40 lines 1.39 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:UpdateSafetyLeverState`.
7 *
8 * Engages or disengages the account's safety lever — engaging it stops all
9 * running experiments and blocks new ones until it is disengaged, the
10 * account-wide chaos kill switch an ops function flips when a stop condition
11 * outside FIS's view fires. The account's lever has the well-known id
12 * `default`. Provide the implementation with
13 * `Effect.provide(AWS.FIS.UpdateSafetyLeverStateHttp)`.
14 * ### The Safety Lever
15 * **Example:** Halt All Experiments
16 * ```typescript
17 * // init — account-level binding, no resource argument
18 * const updateSafetyLeverState = yield* AWS.FIS.UpdateSafetyLeverState();
19 *
20 * // runtime
21 * yield* updateSafetyLeverState({
22 * id: "default",
23 * state: { status: "engaged", reason: "elevated error budget burn" },
24 * });
25 * ```
26 *
27 * @binding
28 */
29 export interface UpdateSafetyLeverState extends Binding.Service<
30 UpdateSafetyLeverState,
31 "AWS.FIS.UpdateSafetyLeverState",
32 () => Effect.Effect<
33 (
34 request: fis.UpdateSafetyLeverStateRequest,
35 ) => Effect.Effect<fis.UpdateSafetyLeverStateResponse, fis.UpdateSafetyLeverStateError>
36 >
37 > {}
38 export const UpdateSafetyLeverState = Binding.Service<UpdateSafetyLeverState>(
39 "AWS.FIS.UpdateSafetyLeverState",
40 );