list_models
¶
list_models(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
sort_by: Optional[ModelSortKey] = None,
sort_order: Optional[OrderKey] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[ModelNameContains] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
) -> ListModelsOutput
Lists models created with the CreateModel API.
Parameters:
-
sort_by(Optional[ModelSortKey], default:None) –Sorts the list of results. The default is
CreationTime. -
sort_order(Optional[OrderKey], default:None) –The sort order for results. The default is
Descending. -
next_token(Optional[PaginationToken], default:None) –If the response to a previous
ListModelsrequest was truncated, the response includes aNextToken. To retrieve the next set of models, use the token in the next request. -
max_results(Optional[MaxResults], default:None) –The maximum number of models to return in the response.
-
name_contains(Optional[ModelNameContains], default:None) –A string in the model name. This filter returns only models whose name contains the specified string.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only models created before the specified time (timestamp).
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only models with a creation time greater than or equal to the specified time (timestamp).
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
25708 25709 25710 25711 25712 25713 25714 25715 25716 25717 25718 25719 25720 25721 25722 25723 25724 25725 25726 25727 25728 25729 25730 25731 25732 25733 25734 25735 25736 25737 25738 25739 25740 25741 25742 25743 25744 25745 25746 25747 25748 25749 25750 25751 25752 25753 25754 25755 25756 25757 25758 25759 25760 25761 25762 25763 25764 25765 25766 25767 25768 25769 25770 25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 | |