| 1 | import * as bigqueryconnection from "@distilled.cloud/gcp/bigqueryconnection_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeConnectionHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetConnection } from "./GetConnection.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetConnection}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.BigQueryConnection.GetConnection |
| 11 | */ |
| 12 | export const GetConnectionHttp = Layer.effect( |
| 13 | GetConnection, |
| 14 | makeConnectionHttpBinding({ |
| 15 | tag: "GCP.BigQueryConnection.GetConnection", |
| 16 | iam: { |
| 17 | role: "roles/bigquery.connectionUser", |
| 18 | on: "bigqueryconnection.connection", |
| 19 | }, |
| 20 | operation: bigqueryconnection.getProjectsLocationsConnections, |
| 21 | }), |
| 22 | ); |