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