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