The best way to control Claude Code, Codex and more from any computer or phone

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