1import type * as opensearch from "@distilled.cloud/aws/opensearch";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for the `GetCompatibleVersions` operation (IAM action
7 * `es:GetCompatibleVersions`).
8 *
9 * Maps engine versions to the versions they can be upgraded to — for one domain (pass `DomainName`) or for every supported version. Provide the implementation with
10 * `Effect.provide(AWS.OpenSearch.GetCompatibleVersionsHttp)`.
11 * ### Engine Upgrades
12 * **Example:** Find Valid Upgrade Targets
13 * ```typescript
14 * const getCompatibleVersions = yield* OpenSearch.GetCompatibleVersions();
15 *
16 * const result = yield* getCompatibleVersions({ DomainName: name });
17 * // result.CompatibleVersions?.[0]?.TargetVersions → upgrade targets
18 * ```
19 *
20 * @binding
21 */
22export interface GetCompatibleVersions extends Binding.Service<
23 GetCompatibleVersions,
24 "AWS.OpenSearch.GetCompatibleVersions",
25 () => Effect.Effect<
26 (
27 request?: opensearch.GetCompatibleVersionsRequest,
28 ) => Effect.Effect<
29 opensearch.GetCompatibleVersionsResponse,
30 opensearch.GetCompatibleVersionsError
31 >
32 >
33> {}
34export const GetCompatibleVersions = Binding.Service<GetCompatibleVersions>(
35 "AWS.OpenSearch.GetCompatibleVersions",
36);