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