versions
Creates, updates, deletes, gets or lists a versions resource.
Overview
| Name | versions |
| Type | Resource |
| Id | aws.opensearch.versions |
Fields
The following fields are returned by SELECT queries:
- list_versions
| Name | Datatype | Description |
|---|---|---|
version | string | A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_versions | select | region | maxResults, nextToken | Lists 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
maxResults | integer | An optional parameter that specifies the maximum number of results to return. You can use nextToken to get the next page of results. |
nextToken | string | If 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
- list_versions
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 }}'
;