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