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