ListEngineVersionsCommand

Returns a list of engine versions that are available to choose from, including the Auto option.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { AthenaClient, ListEngineVersionsCommand } from "@aws-sdk/client-athena"; // ES Modules import
// const { AthenaClient, ListEngineVersionsCommand } = require("@aws-sdk/client-athena"); // CommonJS import
const client = new AthenaClient(config);
const input = { // ListEngineVersionsInput
  NextToken: "STRING_VALUE",
  MaxResults: Number("int"),
};
const command = new ListEngineVersionsCommand(input);
const response = await client.send(command);
// { // ListEngineVersionsOutput
//   EngineVersions: [ // EngineVersionsList
//     { // EngineVersion
//       SelectedEngineVersion: "STRING_VALUE",
//       EffectiveEngineVersion: "STRING_VALUE",
//     },
//   ],
//   NextToken: "STRING_VALUE",
// };

ListEngineVersionsCommand Input

See ListEngineVersionsCommandInput for more details

Parameter
Type
Description
MaxResults
number | undefined

The maximum number of engine versions to return in this request.

NextToken
string | undefined

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

ListEngineVersionsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
EngineVersions
EngineVersion[] | undefined

A list of engine versions that are available to choose from.

NextToken
string | undefined

A token generated by the Athena service that specifies where to continue pagination if a previous request was truncated. To obtain the next set of pages, pass in the NextToken from the response object of the previous page call.

Throws

Name
Fault
Details
InternalServerException
server

Indicates a platform issue, which may be due to a transient condition or outage.

InvalidRequestException
client

Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.

AthenaServiceException
Base exception class for all service exceptions from Athena service.