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).
Polling Asynchronous Operations
Section titled “Polling Asynchronous Operations”// init — account-level binding takes no resourceconst getControlOperation = yield* AWS.ControlTower.GetControlOperation();
// runtimeconst { controlOperation } = yield* getControlOperation({ operationIdentifier,});console.log(controlOperation.status);