:doc:`KinesisAnalyticsV2 <../../kinesisanalyticsv2>` / Client / list_application_versions

*************************
list_application_versions
*************************



.. py:method:: KinesisAnalyticsV2.Client.list_application_versions(**kwargs)

  

  Lists all the versions for the specified application, including versions that were rolled back. The response also includes a summary of the configuration associated with each version.

   

  To get the complete description of a specific application version, invoke the  DescribeApplicationVersion operation.

   

  .. note::

    

    This operation is supported only for Managed Service for Apache Flink.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/kinesisanalyticsv2-2018-05-23/ListApplicationVersions>`_  


  **Request Syntax**
  ::

    response = client.list_application_versions(
        ApplicationName='string',
        Limit=123,
        NextToken='string'
    )
    
  :type ApplicationName: string
  :param ApplicationName: **[REQUIRED]** 

    The name of the application for which you want to list all versions.

    

  
  :type Limit: integer
  :param Limit: 

    The maximum number of versions to list in this invocation of the operation.

    

  
  :type NextToken: string
  :param NextToken: 

    If a previous invocation of this operation returned a pagination token, pass it into this value to retrieve the next set of results. For more information about pagination, see `Using the Amazon Command Line Interface's Pagination Options <https://docs.aws.amazon.com/cli/latest/userguide/pagination.html>`__.

    

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

    
    ::

      {
          'ApplicationVersionSummaries': [
              {
                  'ApplicationVersionId': 123,
                  'ApplicationStatus': 'DELETING'|'STARTING'|'STOPPING'|'READY'|'RUNNING'|'UPDATING'|'AUTOSCALING'|'FORCE_STOPPING'|'ROLLING_BACK'|'MAINTENANCE'|'ROLLED_BACK'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ApplicationVersionSummaries** *(list) --* 

        A list of the application versions and the associated configuration summaries. The list includes application versions that were rolled back.

         

        To get the complete description of a specific application version, invoke the  DescribeApplicationVersion operation.

        
        

        - *(dict) --* 

          The summary of the application version.

          
          

          - **ApplicationVersionId** *(integer) --* 

            The ID of the application version. Managed Service for Apache Flink updates the ``ApplicationVersionId`` each time you update the application.

            
          

          - **ApplicationStatus** *(string) --* 

            The status of the application.

            
      
    
      

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

        The pagination token for the next set of results, or ``null`` if there are no additional results. To retrieve the next set of items, pass this token into a subsequent invocation of this operation. For more information about pagination, see `Using the Amazon Command Line Interface's Pagination Options <https://docs.aws.amazon.com/cli/latest/userguide/pagination.html>`__.

        
  
  **Exceptions**
  
  *   :py:class:`KinesisAnalyticsV2.Client.exceptions.InvalidArgumentException`

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

  
  *   :py:class:`KinesisAnalyticsV2.Client.exceptions.UnsupportedOperationException`

  