The best way to control Claude Code, Codex and more from any computer or phone
| 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<Omit<mq.PromoteRequest, "BrokerId">, mq.PromoteResponse, mq.PromoteError>( |
| 9 | { |
| 10 | capability: "Promote", |
| 11 | operation: mq.promote, |
| 12 | iamActions: ["mq:Promote"], |
| 13 | }, |
| 14 | ), |
| 15 | ); |