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