Personalize / Paginator / ListSolutionVersions

ListSolutionVersions#

class Personalize.Paginator.ListSolutionVersions#
paginator = client.get_paginator('list_solution_versions')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from Personalize.Client.list_solution_versions().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    solutionArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • solutionArn (string) – The Amazon Resource Name (ARN) of the solution.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

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 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 to resume pagination.