| 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 `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< |
| 29 | opensearch.GetUpgradeHistoryResponse, |
| 30 | opensearch.GetUpgradeHistoryError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const GetUpgradeHistory = Binding.Service<GetUpgradeHistory>( |
| 35 | "AWS.OpenSearch.GetUpgradeHistory", |
| 36 | ); |