Skip to content

GetEnabledBaseline

Source: src/AWS/ControlTower/GetEnabledBaseline.ts

Runtime binding for controltower:GetEnabledBaseline.

Bind this operation to an EnabledBaseline to read the enablement’s live status, drift status, and parameters from inside a function runtime. Provide the implementation with Effect.provide(AWS.ControlTower.GetEnabledBaselineHttp).

// init — bind the operation to the enabled baseline
const getEnabledBaseline = yield* AWS.ControlTower.GetEnabledBaseline(ouBaseline);
// runtime
const { enabledBaselineDetails } = yield* getEnabledBaseline();
console.log(enabledBaselineDetails?.statusSummary.status);