Skip to content

GetLandingZone

Source: src/AWS/ControlTower/GetLandingZone.ts

Runtime binding for controltower:GetLandingZone.

An account-level operation that reads the landing zone’s version, status, drift status, and manifest by its ARN (discovered via ListLandingZones). Useful for drift-monitoring functions that alert when the landing zone drifts out of sync. Provide the implementation with Effect.provide(AWS.ControlTower.GetLandingZoneHttp).

// init — account-level binding takes no resource
const getLandingZone = yield* AWS.ControlTower.GetLandingZone();
// runtime
const { landingZone } = yield* getLandingZone({
landingZoneIdentifier: arn,
});
console.log(landingZone.driftStatus?.status);