:doc:`MainframeModernization <../../m2>` / Client / list_application_versions

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



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

  

  Returns a list of the application versions for a specific application.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/m2-2021-04-28/ListApplicationVersions>`_  


  **Request Syntax**
  ::

    response = client.list_application_versions(
        applicationId='string',
        maxResults=123,
        nextToken='string'
    )
    
  :type applicationId: string
  :param applicationId: **[REQUIRED]** 

    The unique identifier of the application.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of application versions to return.

    

  
  :type nextToken: string
  :param nextToken: 

    A pagination token returned from a previous call to this operation. This specifies the next item to return. To return to the beginning of the list, exclude this parameter.

    

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

    
    ::

      {
          'applicationVersions': [
              {
                  'applicationVersion': 123,
                  'creationTime': datetime(2015, 1, 1),
                  'status': 'Creating'|'Available'|'Failed',
                  'statusReason': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **applicationVersions** *(list) --* 

        The list of application versions.

        
        

        - *(dict) --* 

          Defines an application version summary.

          
          

          - **applicationVersion** *(integer) --* 

            The application version.

            
          

          - **creationTime** *(datetime) --* 

            The timestamp when the application version was created.

            
          

          - **status** *(string) --* 

            The status of the application.

            
          

          - **statusReason** *(string) --* 

            The reason for the reported status.

            
      
    
      

      - **nextToken** *(string) --* 

        If there are more items to return, this contains a token that is passed to a subsequent call to this operation to retrieve the next set of items.

        
  
  **Exceptions**
  
  *   :py:class:`MainframeModernization.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`MainframeModernization.Client.exceptions.ThrottlingException`

  
  *   :py:class:`MainframeModernization.Client.exceptions.AccessDeniedException`

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

  
  *   :py:class:`MainframeModernization.Client.exceptions.InternalServerException`

  