| 1 | import * as controltower from "@distilled.cloud/aws/controltower"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeControlTowerHttpBinding } from "./BindingHttp.ts"; |
| 4 | import type { LandingZone } from "./LandingZone.ts"; |
| 5 | import { ResetLandingZone } from "./ResetLandingZone.ts"; |
| 6 | |
| 7 | export const ResetLandingZoneHttp = Layer.effect( |
| 8 | ResetLandingZone, |
| 9 | makeControlTowerHttpBinding({ |
| 10 | capability: "ResetLandingZone", |
| 11 | iamActions: ["controltower:ResetLandingZone"], |
| 12 | requestKey: "landingZoneIdentifier", |
| 13 | identifier: (landingZone: LandingZone) => landingZone.landingZoneArn, |
| 14 | operation: controltower.resetLandingZone, |
| 15 | }), |
| 16 | ); |