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

main
ts 31 lines 1.09 KB
Raw
1 import type * as opensearch from "@distilled.cloud/aws/opensearch";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for the `ListVersions` operation (IAM action
7 * `es:ListVersions`).
8 *
9 * Lists every OpenSearch and Elasticsearch version the service supports — e.g. to validate an upgrade target before calling the upgrade API. Provide the implementation with
10 * `Effect.provide(AWS.OpenSearch.ListVersionsHttp)`.
11 * ### Engine Catalog
12 * **Example:** List Supported Engine Versions
13 * ```typescript
14 * const listVersions = yield* OpenSearch.ListVersions();
15 *
16 * const result = yield* listVersions();
17 * // result.Versions → ["OpenSearch_2.19", …]
18 * ```
19 *
20 * @binding
21 */
22 export interface ListVersions extends Binding.Service<
23 ListVersions,
24 "AWS.OpenSearch.ListVersions",
25 () => Effect.Effect<
26 (
27 request?: opensearch.ListVersionsRequest,
28 ) => Effect.Effect<opensearch.ListVersionsResponse, opensearch.ListVersionsError>
29 >
30 > {}
31 export const ListVersions = Binding.Service<ListVersions>("AWS.OpenSearch.ListVersions");