Skip to content

GetExperiment

Source: src/AWS/FIS/GetExperiment.ts

Runtime binding for fis:GetExperiment.

Reads a running or finished experiment — its state (pending, initiating, running, completed, stopped, failed), per-action progress, and log/report configuration. Experiments are created dynamically, so this is an account-level binding addressed by experiment id. Provide the implementation with Effect.provide(AWS.FIS.GetExperimentHttp).

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