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