SageMaker / Paginator / ListModelCards

ListModelCards#

class SageMaker.Paginator.ListModelCards#
paginator = client.get_paginator('list_model_cards')
paginate(**kwargs)#

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

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    CreationTimeAfter=datetime(2015, 1, 1),
    CreationTimeBefore=datetime(2015, 1, 1),
    NameContains='string',
    ModelCardStatus='Draft'|'PendingReview'|'Approved'|'Archived',
    SortBy='Name'|'CreationTime',
    SortOrder='Ascending'|'Descending',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • CreationTimeAfter (datetime) – Only list model cards that were created after the time specified.

  • CreationTimeBefore (datetime) – Only list model cards that were created before the time specified.

  • NameContains (string) – Only list model cards with names that contain the specified string.

  • ModelCardStatus (string) – Only list model cards with the specified approval status.

  • SortBy (string) – Sort model cards by either name or creation time. Sorts by creation time by default.

  • SortOrder (string) – Sort model cards by ascending or descending order.

  • 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

{
    'ModelCardSummaries': [
        {
            'ModelCardName': 'string',
            'ModelCardArn': 'string',
            'ModelCardStatus': 'Draft'|'PendingReview'|'Approved'|'Archived',
            'CreationTime': datetime(2015, 1, 1),
            'LastModifiedTime': datetime(2015, 1, 1)
        },
    ],

}

Response Structure

  • (dict) –

    • ModelCardSummaries (list) –

      The summaries of the listed model cards.

      • (dict) –

        A summary of the model card.

        • ModelCardName (string) –

          The name of the model card.

        • ModelCardArn (string) –

          The Amazon Resource Name (ARN) of the model card.

        • ModelCardStatus (string) –

          The approval status of the model card within your organization. Different organizations might have different criteria for model card review and approval.

          • Draft: The model card is a work in progress.

          • PendingReview: The model card is pending review.

          • Approved: The model card is approved.

          • Archived: The model card is archived. No more updates should be made to the model card, but it can still be exported.

        • CreationTime (datetime) –

          The date and time that the model card was created.

        • LastModifiedTime (datetime) –

          The date and time that the model card was last modified.