:doc:`Personalize <../../personalize>` / Client / list_solution_versions

**********************
list_solution_versions
**********************



.. py:method:: Personalize.Client.list_solution_versions(**kwargs)

  

  Returns a list of solution versions for the given solution. When a solution is not specified, all the solution versions associated with the account are listed. The response provides the properties for each solution version, including the Amazon Resource Name (ARN).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/personalize-2018-05-22/ListSolutionVersions>`_  


  **Request Syntax**
  ::

    response = client.list_solution_versions(
        solutionArn='string',
        nextToken='string',
        maxResults=123
    )
    
  :type solutionArn: string
  :param solutionArn: 

    The Amazon Resource Name (ARN) of the solution.

    

  
  :type nextToken: string
  :param nextToken: 

    A token returned from the previous call to ``ListSolutionVersions`` for getting the next set of solution versions (if they exist).

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of solution versions to return.

    

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

    
    ::

      {
          'solutionVersions': [
              {
                  'solutionVersionArn': 'string',
                  'status': 'string',
                  'trainingMode': 'FULL'|'UPDATE'|'AUTOTRAIN',
                  'trainingType': 'AUTOMATIC'|'MANUAL',
                  'creationDateTime': datetime(2015, 1, 1),
                  'lastUpdatedDateTime': datetime(2015, 1, 1),
                  'failureReason': 'string'
              },
          ],
          'nextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **solutionVersions** *(list) --* 

        A list of solution versions describing the version properties.

        
        

        - *(dict) --* 

          Provides a summary of the properties of a solution version. For a complete listing, call the `DescribeSolutionVersion <https://docs.aws.amazon.com/personalize/latest/dg/API_DescribeSolutionVersion.html>`__ API.

          
          

          - **solutionVersionArn** *(string) --* 

            The Amazon Resource Name (ARN) of the solution version.

            
          

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

            The status of the solution version.

             

            A solution version can be in one of the following states:

             

            
            * CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
            

            
          

          - **trainingMode** *(string) --* 

            The scope of training to be performed when creating the solution version. A ``FULL`` training considers all of the data in your dataset group. An ``UPDATE`` processes only the data that has changed since the latest training. Only solution versions created with the User-Personalization recipe can use ``UPDATE``.

            
          

          - **trainingType** *(string) --* 

            Whether the solution version was created automatically or manually.

            
          

          - **creationDateTime** *(datetime) --* 

            The date and time (in Unix time) that this version of a solution was created.

            
          

          - **lastUpdatedDateTime** *(datetime) --* 

            The date and time (in Unix time) that the solution version was last updated.

            
          

          - **failureReason** *(string) --* 

            If a solution version fails, the reason behind the failure.

            
      
    
      

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

        A token for getting the next set of solution versions (if they exist).

        
  
  **Exceptions**
  
  *   :py:class:`Personalize.Client.exceptions.InvalidInputException`

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

  
  *   :py:class:`Personalize.Client.exceptions.InvalidNextTokenException`

  