:doc:`Kafka <../../kafka>` / Client / list_kafka_versions

*******************
list_kafka_versions
*******************



.. py:method:: Kafka.Client.list_kafka_versions(**kwargs)

  

  Returns a list of Apache Kafka versions.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kafka-2018-11-14/ListKafkaVersions>`_  


  **Request Syntax**
  ::

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

    The maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.

    

  
  :type NextToken: string
  :param NextToken: 

    The paginated results marker. When the result of the operation is truncated, the call returns NextToken in the response. To get the next batch, provide this token in your next request.

    

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

    
    ::

      {
          'KafkaVersions': [
              {
                  'Version': 'string',
                  'Status': 'ACTIVE'|'DEPRECATED'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **KafkaVersions** *(list) --* 
        

        - *(dict) --* 
          

          - **Version** *(string) --* 
          

          - **Status** *(string) --* 
      
    
      

      - **NextToken** *(string) --* 
  
  **Exceptions**
  
  *   :py:class:`Kafka.Client.exceptions.BadRequestException`

  
  *   :py:class:`Kafka.Client.exceptions.UnauthorizedException`

  
  *   :py:class:`Kafka.Client.exceptions.InternalServerErrorException`

  
  *   :py:class:`Kafka.Client.exceptions.ForbiddenException`

  