1import type * as eks from "@distilled.cloud/aws/eks";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `eks:DescribeClusterVersions`.
7 *
8 * Reads the Kubernetes version catalog — which versions EKS currently offers, their support status, and end-of-support dates.
9 * `eks:DescribeClusterVersions` is granted on `*` — the operation is account-scoped and takes no resource.
10 * Provide the implementation with
11 * `Effect.provide(AWS.EKS.DescribeClusterVersionsHttp)`.
12 * ### Version Catalogs
13 * **Example:** Find the Default Kubernetes Version
14 * ```typescript
15 * // init
16 * const describeClusterVersions = yield* AWS.EKS.DescribeClusterVersions();
17 *
18 * // runtime
19 * const { clusterVersions } = yield* describeClusterVersions({
20 * defaultOnly: true,
21 * });
22 * ```
23 *
24 * @binding
25 */
26export interface DescribeClusterVersions extends Binding.Service<
27 DescribeClusterVersions,
28 "AWS.EKS.DescribeClusterVersions",
29 () => Effect.Effect<
30 (
31 request?: eks.DescribeClusterVersionsRequest,
32 ) => Effect.Effect<
33 eks.DescribeClusterVersionsResponse,
34 eks.DescribeClusterVersionsError
35 >
36 >
37> {}
38export const DescribeClusterVersions = Binding.Service<DescribeClusterVersions>(
39 "AWS.EKS.DescribeClusterVersions",
40);