Skip to content

StopExperiment

Source: src/AWS/FIS/StopExperiment.ts

Runtime binding for fis:StopExperiment.

Stops a running experiment — the manual abort switch for a chaos-engineering run that a monitoring function decides has gone far enough. Experiments are created dynamically, so this is an account-level binding addressed by experiment id. Provide the implementation with Effect.provide(AWS.FIS.StopExperimentHttp).

// init — account-level binding, no resource argument
const stopExperiment = yield* AWS.FIS.StopExperiment();
// runtime
const { experiment } = yield* stopExperiment({ id: experimentId });
console.log(experiment?.state?.status); // "stopping"