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).
Inspecting an Enabled Baseline
Section titled “Inspecting an Enabled Baseline”// init — bind the operation to the enabled baselineconst getEnabledBaseline = yield* AWS.ControlTower.GetEnabledBaseline(ouBaseline);
// runtimeconst { enabledBaselineDetails } = yield* getEnabledBaseline();console.log(enabledBaselineDetails?.statusSummary.status);