We are excited to announce our new API Documentation.
Protected
Returns a map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.
Use a bare-bones client and the command you need to make an API call.
import { OpenSearchClient, GetCompatibleVersionsCommand } from "@aws-sdk/client-opensearch"; // ES Modules import// const { OpenSearchClient, GetCompatibleVersionsCommand } = require("@aws-sdk/client-opensearch"); // CommonJS importconst client = new OpenSearchClient(config);const input = { // GetCompatibleVersionsRequest DomainName: "STRING_VALUE",};const command = new GetCompatibleVersionsCommand(input);const response = await client.send(command);// { // GetCompatibleVersionsResponse// CompatibleVersions: [ // CompatibleVersionsList// { // CompatibleVersionsMap// SourceVersion: "STRING_VALUE",// TargetVersions: [ // VersionList// "STRING_VALUE",// ],// },// ],// };
GetCompatibleVersionsCommandInput
GetCompatibleVersionsCommandOutput
input
response
config
BaseException (client fault)
An error occurred while processing the request.
DisabledOperationException (client fault)
An error occured because the client wanted to access an unsupported operation.
InternalException (server fault)
Request processing failed because of an unknown error, exception, or internal failure.
ResourceNotFoundException (client fault)
An exception for accessing or deleting a resource that doesn't exist.
ValidationException (client fault)
OpenSearchServiceException
Base exception class for all service exceptions from OpenSearch service.
Readonly
Static
Returns a map of OpenSearch or Elasticsearch versions and the versions you can upgrade them to.
Example
Use a bare-bones client and the command you need to make an API call.
Param
GetCompatibleVersionsCommandInput
Returns
GetCompatibleVersionsCommandOutput
See
input
shape.response
shape.config
shape.Throws
BaseException (client fault)
An error occurred while processing the request.
Throws
DisabledOperationException (client fault)
An error occured because the client wanted to access an unsupported operation.
Throws
InternalException (server fault)
Request processing failed because of an unknown error, exception, or internal failure.
Throws
ResourceNotFoundException (client fault)
An exception for accessing or deleting a resource that doesn't exist.
Throws
ValidationException (client fault)
An exception for accessing or deleting a resource that doesn't exist.
Throws
OpenSearchServiceException
Base exception class for all service exceptions from OpenSearch service.