@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 33 lines 1.11 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 `GetUpgradeStatus` operation (IAM action
7 * `es:GetUpgradeStatus`).
8 *
9 * Reads the status of a domain's most recent engine-version upgrade or upgrade-eligibility check. Provide the implementation with
10 * `Effect.provide(AWS.OpenSearch.GetUpgradeStatusHttp)`.
11 * ### Engine Upgrades
12 * **Example:** Check an In-Progress Upgrade
13 * ```typescript
14 * const getUpgradeStatus = yield* OpenSearch.GetUpgradeStatus();
15 *
16 * const result = yield* getUpgradeStatus({ DomainName: name });
17 * // result.StepStatus → "SUCCEEDED"
18 * ```
19 *
20 * @binding
21 */
22 export interface GetUpgradeStatus extends Binding.Service<
23 GetUpgradeStatus,
24 "AWS.OpenSearch.GetUpgradeStatus",
25 () => Effect.Effect<
26 (
27 request: opensearch.GetUpgradeStatusRequest,
28 ) => Effect.Effect<opensearch.GetUpgradeStatusResponse, opensearch.GetUpgradeStatusError>
29 >
30 > {}
31 export const GetUpgradeStatus = Binding.Service<GetUpgradeStatus>(
32 "AWS.OpenSearch.GetUpgradeStatus",
33 );