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