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