1import * as alloydb from "@distilled.cloud/gcp/alloydb_v1";
2import * as Layer from "effect/Layer";
3import { makeAlloyDbUserHttpBinding } from "./BindingHttp.ts";
4import { GetUser } from "./GetUser.ts";
5
6/**
7 * HTTP implementation of {@link GetUser}.
8 *
9 * @layer
10 * @provides GCP.AlloyDB.GetUser
11 */
12export 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);