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