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