Skip to content

ResetEnabledBaseline

Source: src/AWS/ControlTower/ResetEnabledBaseline.ts

Runtime binding for controltower:ResetEnabledBaseline.

Bind this operation to an EnabledBaseline to re-enroll the target with its baseline from inside a function runtime — remediating drift without changing the enablement’s configuration. The call starts an asynchronous operation; poll it with GetBaselineOperation. Provide the implementation with Effect.provide(AWS.ControlTower.ResetEnabledBaselineHttp).

// init — bind the operation to the enabled baseline
const resetEnabledBaseline = yield* AWS.ControlTower.ResetEnabledBaseline(ouBaseline);
// runtime
const { operationIdentifier } = yield* resetEnabledBaseline();