import type * as mq from "@distilled.cloud/aws/mq"; import type * as Effect from "effect/Effect"; import * as Binding from "../../Binding.ts"; /** * Runtime binding for the `ListBrokers` operation (IAM action * `mq:ListBrokers` on `*` — the operation is not resource-scoped). * * Lists all Amazon MQ brokers in the account/region. Provide the * implementation with `Effect.provide(AWS.MQ.ListBrokersHttp)`. * ### Observing a Broker * **Example:** List All Brokers * ```typescript * const listBrokers = yield* MQ.ListBrokers(); * * const page = yield* listBrokers(); * // page.BrokerSummaries → [{ BrokerName: "orders", BrokerState: "RUNNING", … }] * ``` * * @binding */ export interface ListBrokers extends Binding.Service< ListBrokers, "AWS.MQ.ListBrokers", () => Effect.Effect< ( request?: mq.ListBrokersRequest, ) => Effect.Effect > > {} export const ListBrokers = Binding.Service("AWS.MQ.ListBrokers");