Skip to content

GetExperimentTemplate

Source: src/AWS/FIS/GetExperimentTemplate.ts

Runtime binding for fis:GetExperimentTemplate.

Reads the bound ExperimentTemplate’s full definition — targets, actions, stop conditions, log and report configuration — so a runtime function can inspect the experiment it is about to start. The template id is injected from the binding. Provide the implementation with Effect.provide(AWS.FIS.GetExperimentTemplateHttp).

// init — bind the operation to the experiment template
const getExperimentTemplate = yield* AWS.FIS.GetExperimentTemplate(template);
// runtime
const { experimentTemplate } = yield* getExperimentTemplate();
console.log(Object.keys(experimentTemplate?.actions ?? {}));