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