1import * as mq from "@distilled.cloud/aws/mq";
2import * as Layer from "effect/Layer";
3import { makeMqBrokerHttpBinding } from "./BindingHttp.ts";
4import { Promote } from "./Promote.ts";
5
6export 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);