sailfork / t3code-github / .repos/ alchemy-effect/ packages/ gcp/ src/ Container/ GetClustersNodePoolHttp.ts

import * as container from "@distilled.cloud/gcp/container_v1";
import * as Layer from "effect/Layer";
import { makeContainerClustersNodePoolHttpBinding } from "./BindingHttp.ts";
import { GetClustersNodePool } from "./GetClustersNodePool.ts";

/**
 * HTTP implementation of {@link GetClustersNodePool}.
 *
 * @layer
 * @provides GCP.Container.GetClustersNodePool
 */
export const GetClustersNodePoolHttp = Layer.effect(
  GetClustersNodePool,
  makeContainerClustersNodePoolHttpBinding({
    tag: "GCP.Container.GetClustersNodePool",
    iam: { role: "roles/container.clusterViewer" },
    operation: container.getProjectsZonesClustersNodePools,
  }),
);