| 1 | import * as tpu from "@distilled.cloud/gcp/tpu_v2"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeTpuQueuedResourceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetQueuedResource } from "./GetQueuedResource.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetQueuedResource}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.TPU.GetQueuedResource |
| 11 | */ |
| 12 | export const GetQueuedResourceHttp = Layer.effect( |
| 13 | GetQueuedResource, |
| 14 | makeTpuQueuedResourceHttpBinding({ |
| 15 | tag: "GCP.TPU.GetQueuedResource", |
| 16 | iam: { role: "roles/tpu.viewer" }, |
| 17 | operation: tpu.getProjectsLocationsQueuedResources, |
| 18 | }), |
| 19 | ); |