| 1 | import * as composer from "@distilled.cloud/gcp/composer_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEnvironmentHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetEnvironment } from "./GetEnvironment.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetEnvironment}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Composer.GetEnvironment |
| 11 | */ |
| 12 | export const GetEnvironmentHttp = Layer.effect( |
| 13 | GetEnvironment, |
| 14 | makeEnvironmentHttpBinding({ |
| 15 | tag: "GCP.Composer.GetEnvironment", |
| 16 | iam: { role: "roles/composer.viewer" }, |
| 17 | nameKey: "name", |
| 18 | operation: composer.getProjectsLocationsEnvironments, |
| 19 | }), |
| 20 | ); |