SageMaker.Client.
list_model_cards
(**kwargs)¶List existing model cards.
See also: AWS API Documentation
Request Syntax
response = client.list_model_cards(
CreationTimeAfter=datetime(2015, 1, 1),
CreationTimeBefore=datetime(2015, 1, 1),
MaxResults=123,
NameContains='string',
ModelCardStatus='Draft'|'PendingReview'|'Approved'|'Archived',
NextToken='string',
SortBy='Name'|'CreationTime',
SortOrder='Ascending'|'Descending'
)
ListModelCards
request was truncated, the response includes a NextToken
. To retrieve the next set of model cards, use the token in the next request.dict
Response Syntax
{
'ModelCardSummaries': [
{
'ModelCardName': 'string',
'ModelCardArn': 'string',
'ModelCardStatus': 'Draft'|'PendingReview'|'Approved'|'Archived',
'CreationTime': datetime(2015, 1, 1),
'LastModifiedTime': datetime(2015, 1, 1)
},
],
'NextToken': 'string'
}
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.
NextToken (string) --
If the response is truncated, SageMaker returns this token. To retrieve the next set of model cards, use it in the subsequent request.