Skip to content

GetControlOperation

Source: src/AWS/ControlTower/GetControlOperation.ts

Runtime binding for controltower:GetControlOperation.

An account-level operation that reads the status of an asynchronous control operation (ENABLE_CONTROL, DISABLE_CONTROL, UPDATE_ENABLED_CONTROL, RESET_ENABLED_CONTROL). Pair it with ResetEnabledControl to poll a drift-remediation run to completion. Provide the implementation with Effect.provide(AWS.ControlTower.GetControlOperationHttp).

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