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