OpenSearchService.Client.
list_versions
(**kwargs)¶Lists all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.
See also: AWS API Documentation
Request Syntax
response = client.list_versions(
MaxResults=123,
NextToken='string'
)
nextToken
to get the next page of results.ListVersions
operation returns a nextToken
, you can include the returned nextToken
in subsequent ListVersions
operations, which returns results in the next page.dict
Response Syntax
{
'Versions': [
'string',
],
'NextToken': 'string'
}
Response Structure
(dict) --
Container for the parameters for response received from the ListVersions
operation.
Versions (list) --
A list of all versions of OpenSearch and Elasticsearch that Amazon OpenSearch Service supports.
NextToken (string) --
When nextToken
is returned, there are more results available. The value of nextToken
is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page.
Exceptions
OpenSearchService.Client.exceptions.BaseException
OpenSearchService.Client.exceptions.InternalException
OpenSearchService.Client.exceptions.ResourceNotFoundException
OpenSearchService.Client.exceptions.ValidationException