| 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 { EnabledControl } from "./EnabledControl.ts"; |
| 5 | import { ResetEnabledControl } from "./ResetEnabledControl.ts"; |
| 6 | |
| 7 | export const ResetEnabledControlHttp = Layer.effect( |
| 8 | ResetEnabledControl, |
| 9 | makeControlTowerHttpBinding({ |
| 10 | capability: "ResetEnabledControl", |
| 11 | iamActions: ["controltower:ResetEnabledControl"], |
| 12 | requestKey: "enabledControlIdentifier", |
| 13 | identifier: (enabledControl: EnabledControl) => |
| 14 | enabledControl.enabledControlArn, |
| 15 | operation: controltower.resetEnabledControl, |
| 16 | }), |
| 17 | ); |