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

main
ts 33 lines 1.13 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 `GetUpgradeHistory` operation (IAM action
7 * `es:GetUpgradeHistory`).
8 *
9 * Lists a domain's past engine-version upgrades and upgrade-eligibility checks, with per-step progress. Provide the implementation with
10 * `Effect.provide(AWS.OpenSearch.GetUpgradeHistoryHttp)`.
11 * ### Engine Upgrades
12 * **Example:** List Past Upgrades
13 * ```typescript
14 * const getUpgradeHistory = yield* OpenSearch.GetUpgradeHistory();
15 *
16 * const result = yield* getUpgradeHistory({ DomainName: name });
17 * // result.UpgradeHistories → past upgrades
18 * ```
19 *
20 * @binding
21 */
22 export interface GetUpgradeHistory extends Binding.Service<
23 GetUpgradeHistory,
24 "AWS.OpenSearch.GetUpgradeHistory",
25 () => Effect.Effect<
26 (
27 request: opensearch.GetUpgradeHistoryRequest,
28 ) => Effect.Effect<opensearch.GetUpgradeHistoryResponse, opensearch.GetUpgradeHistoryError>
29 >
30 > {}
31 export const GetUpgradeHistory = Binding.Service<GetUpgradeHistory>(
32 "AWS.OpenSearch.GetUpgradeHistory",
33 );