Skip to content

ResetEnabledControl

Source: src/AWS/ControlTower/ResetEnabledControl.ts

Runtime binding for controltower:ResetEnabledControl.

Bind this operation to an EnabledControl to re-deploy the guardrail’s governance resources from inside a function runtime — remediating drift without changing the enablement’s configuration. The call starts an asynchronous operation; poll it with GetControlOperation. Provide the implementation with Effect.provide(AWS.ControlTower.ResetEnabledControlHttp).

// init — bind the operation to the enabled control
const resetEnabledControl = yield* AWS.ControlTower.ResetEnabledControl(guardrail);
// runtime
const { operationIdentifier } = yield* resetEnabledControl();