| 1 | import * as connectors from "@distilled.cloud/gcp/connectors_v2"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEntityHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetEntity } from "./GetEntity.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetEntity}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Connectors.GetEntity |
| 11 | */ |
| 12 | export const GetEntityHttp = Layer.effect( |
| 13 | GetEntity, |
| 14 | makeEntityHttpBinding({ |
| 15 | tag: "GCP.Connectors.GetEntity", |
| 16 | iam: { role: "roles/connectors.invoker" }, |
| 17 | operation: connectors.getProjectsLocationsConnectionsEntityTypesEntities, |
| 18 | }), |
| 19 | ); |