Skip to content

UpdateSafetyLeverState

Source: src/AWS/FIS/UpdateSafetyLeverState.ts

Runtime binding for fis:UpdateSafetyLeverState.

Engages or disengages the account’s safety lever — engaging it stops all running experiments and blocks new ones until it is disengaged, the account-wide chaos kill switch an ops function flips when a stop condition outside FIS’s view fires. The account’s lever has the well-known id default. Provide the implementation with Effect.provide(AWS.FIS.UpdateSafetyLeverStateHttp).

// init — account-level binding, no resource argument
const updateSafetyLeverState = yield* AWS.FIS.UpdateSafetyLeverState();
// runtime
yield* updateSafetyLeverState({
id: "default",
state: { status: "engaged", reason: "elevated error budget burn" },
});