SageMaker / Paginator / ListAIRecommendationJobs

ListAIRecommendationJobs

class SageMaker.Paginator.ListAIRecommendationJobs
paginator = client.get_paginator('list_ai_recommendation_jobs')
paginate(**kwargs)

Creates an iterator that will paginate through responses from SageMaker.Client.list_ai_recommendation_jobs().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    NameContains='string',
    StatusEquals='InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
    CreationTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    SortBy='Name'|'CreationTime'|'Status',
    SortOrder='Ascending'|'Descending',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • NameContains (string) – A string in the job name. This filter returns only jobs whose name contains the specified string.

  • StatusEquals (string) – A filter that returns only recommendation jobs with the specified status.

  • CreationTimeAfter (datetime) – A filter that returns only jobs created after the specified time.

  • CreationTimeBefore (datetime) – A filter that returns only jobs created before the specified time.

  • SortBy (string) – The field to sort results by. The default is CreationTime.

  • SortOrder (string) – The sort order for results. The default is Descending.

  • 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

{
    'AIRecommendationJobs': [
        {
            'AIRecommendationJobName': 'string',
            'AIRecommendationJobArn': 'string',
            'AIRecommendationJobStatus': 'InProgress'|'Completed'|'Failed'|'Stopping'|'Stopped',
            'CreationTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1)
        },
    ],

}

Response Structure

  • (dict) –

    • AIRecommendationJobs (list) –

      An array of AIRecommendationJobSummary objects, one for each recommendation job that matches the specified filters.

      • (dict) –

        Summary information about an AI recommendation job.

        • AIRecommendationJobName (string) –

          The name of the recommendation job.

        • AIRecommendationJobArn (string) –

          The Amazon Resource Name (ARN) of the recommendation job.

        • AIRecommendationJobStatus (string) –

          The status of the recommendation job.

        • CreationTime (datetime) –

          A timestamp that indicates when the recommendation job was created.

        • EndTime (datetime) –

          A timestamp that indicates when the recommendation job completed.