:doc:`ElasticsearchService <../../es>` / Client / list_elasticsearch_versions

***************************
list_elasticsearch_versions
***************************



.. py:method:: ElasticsearchService.Client.list_elasticsearch_versions(**kwargs)

  

  List all supported Elasticsearch versions

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/es-2015-01-01/ListElasticsearchVersions>`_  


  **Request Syntax**
  ::

    response = client.list_elasticsearch_versions(
        MaxResults=123,
        NextToken='string'
    )
    
  :type MaxResults: integer
  :param MaxResults: 

    Set this value to limit the number of results returned. Value provided must be greater than 10 else it wont be honored.

    

  
  :type NextToken: string
  :param NextToken: 

    Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'ElasticsearchVersions': [
              'string',
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Container for the parameters for response received from ``ListElasticsearchVersions`` operation.

      
      

      - **ElasticsearchVersions** *(list) --* 

        List of supported elastic search versions.

        
        

        - *(string) --* 
    
      

      - **NextToken** *(string) --* 

        Paginated APIs accepts NextToken input to returns next page results and provides a NextToken output in the response which can be used by the client to retrieve more results.

        
  
  **Exceptions**
  
  *   :py:class:`ElasticsearchService.Client.exceptions.BaseException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.InternalException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`ElasticsearchService.Client.exceptions.ValidationException`

  