Skip to content

ListVersions

Source: src/AWS/OpenSearch/ListVersions.ts

Runtime binding for the ListVersions operation (IAM action es:ListVersions).

Lists every OpenSearch and Elasticsearch version the service supports — e.g. to validate an upgrade target before calling the upgrade API. Provide the implementation with Effect.provide(AWS.OpenSearch.ListVersionsHttp).

const listVersions = yield* OpenSearch.ListVersions();
const result = yield* listVersions();
// result.Versions → ["OpenSearch_2.19", …]