Skip to content

GetBaselineOperation

Source: src/AWS/ControlTower/GetBaselineOperation.ts

Runtime binding for controltower:GetBaselineOperation.

An account-level operation that reads the status of an asynchronous baseline operation (ENABLE_BASELINE, DISABLE_BASELINE, UPDATE_ENABLED_BASELINE, RESET_ENABLED_BASELINE). Pair it with ResetEnabledBaseline to poll a drift-remediation run to completion. Provide the implementation with Effect.provide(AWS.ControlTower.GetBaselineOperationHttp).

// init — account-level binding takes no resource
const getBaselineOperation = yield* AWS.ControlTower.GetBaselineOperation();
// runtime
const { baselineOperation } = yield* getBaselineOperation({
operationIdentifier,
});
console.log(baselineOperation.status);