| 1 | import * as container from "@distilled.cloud/gcp/container_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeContainerClustersNodePoolHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetClustersNodePool } from "./GetClustersNodePool.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetClustersNodePool}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Container.GetClustersNodePool |
| 11 | */ |
| 12 | export const GetClustersNodePoolHttp = Layer.effect( |
| 13 | GetClustersNodePool, |
| 14 | makeContainerClustersNodePoolHttpBinding({ |
| 15 | tag: "GCP.Container.GetClustersNodePool", |
| 16 | iam: { role: "roles/container.clusterViewer" }, |
| 17 | operation: container.getProjectsZonesClustersNodePools, |
| 18 | }), |
| 19 | ); |