The best way to control Claude Code, Codex and more from any computer or phone

main
ts 37 lines 1.26 KB
Raw
1 import type * as eks from "@distilled.cloud/aws/eks";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
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 */
26 export interface DescribeClusterVersions extends Binding.Service<
27 DescribeClusterVersions,
28 "AWS.EKS.DescribeClusterVersions",
29 () => Effect.Effect<
30 (
31 request?: eks.DescribeClusterVersionsRequest,
32 ) => Effect.Effect<eks.DescribeClusterVersionsResponse, eks.DescribeClusterVersionsError>
33 >
34 > {}
35 export const DescribeClusterVersions = Binding.Service<DescribeClusterVersions>(
36 "AWS.EKS.DescribeClusterVersions",
37 );