Skip to content

ResetLandingZone

Source: src/AWS/ControlTower/ResetLandingZone.ts

Runtime binding for controltower:ResetLandingZone.

Bind this operation to a LandingZone to re-deploy the landing zone to its last-known configuration from inside a function runtime — remediating landing zone drift. The call starts an asynchronous operation (landing zone operations routinely take an hour); poll it with GetLandingZoneOperation. Provide the implementation with Effect.provide(AWS.ControlTower.ResetLandingZoneHttp).

// init — bind the operation to the landing zone
const resetLandingZone = yield* AWS.ControlTower.ResetLandingZone(landingZone);
// runtime
const { operationIdentifier } = yield* resetLandingZone();