| 1 | import * as alloydb from "@distilled.cloud/gcp/alloydb_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeAlloyDbUserHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetUser } from "./GetUser.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetUser}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.AlloyDB.GetUser |
| 11 | */ |
| 12 | export const GetUserHttp = Layer.effect( |
| 13 | GetUser, |
| 14 | makeAlloyDbUserHttpBinding({ |
| 15 | tag: "GCP.AlloyDB.GetUser", |
| 16 | iam: { role: "roles/alloydb.viewer" }, |
| 17 | operation: alloydb.getProjectsLocationsClustersUsers, |
| 18 | }), |
| 19 | ); |