Skip to content

StartExperiment

Source: src/AWS/FIS/StartExperiment.ts

Runtime binding for fis:StartExperiment.

Starts a fault-injection experiment from the bound ExperimentTemplate — the template’s id is injected and the idempotency clientToken is generated automatically. The IAM grant covers both the template and the experiment/* ARN the started experiment is created under. Provide the implementation with Effect.provide(AWS.FIS.StartExperimentHttp).

// init — bind the operation to the experiment template
const startExperiment = yield* AWS.FIS.StartExperiment(template);
// runtime
const { experiment } = yield* startExperiment();
console.log(experiment?.id, experiment?.state?.status);