| 1 | import * as mq from "@distilled.cloud/aws/mq"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeMqBrokerHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { Promote } from "./Promote.ts"; |
| 5 | |
| 6 | export const PromoteHttp = Layer.effect( |
| 7 | Promote, |
| 8 | makeMqBrokerHttpBinding< |
| 9 | Omit<mq.PromoteRequest, "BrokerId">, |
| 10 | mq.PromoteResponse, |
| 11 | mq.PromoteError |
| 12 | >({ |
| 13 | capability: "Promote", |
| 14 | operation: mq.promote, |
| 15 | iamActions: ["mq:Promote"], |
| 16 | }), |
| 17 | ); |