Skip to main content

versions

Creates, updates, deletes, gets or lists a versions resource.

Overview​

Nameversions
TypeResource
Idaws.opensearch.versions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
versionstringA list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_versionsselectregionmaxResults, nextTokenLists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
maxResultsintegerAn optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results.
nextTokenstringIf your initial ListVersions operation returns a nextToken, you can include the returned nextToken in subsequent ListVersions operations, which returns results in the next page.

SELECT examples​

Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.

SELECT
version
FROM aws.opensearch.versions
WHERE region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;