1import * as workstations from "@distilled.cloud/gcp/workstations_v1";
2import * as Layer from "effect/Layer";
3import { makeWorkstationHttpBinding } from "./BindingHttp.ts";
4import { GetWorkstation } from "./GetWorkstation.ts";
5
6/**
7 * HTTP implementation of {@link GetWorkstation}.
8 *
9 * @layer
10 * @provides GCP.Workstations.GetWorkstation
11 */
12export const GetWorkstationHttp = Layer.effect(
13 GetWorkstation,
14 makeWorkstationHttpBinding({
15 tag: "GCP.Workstations.GetWorkstation",
16 iam: { role: "roles/workstations.viewer", on: "workstations.workstation" },
17 operation:
18 workstations.getProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations,
19 }),
20);