| 1 | import type * as opensearch from "@distilled.cloud/aws/opensearch"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 29 | opensearch.GetUpgradeStatusResponse, |
| 30 | opensearch.GetUpgradeStatusError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const GetUpgradeStatus = Binding.Service<GetUpgradeStatus>( |
| 35 | "AWS.OpenSearch.GetUpgradeStatus", |
| 36 | ); |