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
22928 22929 22930 22931 22932 22933 22934 22935 22936 22937 22938 22939 22940 22941 22942 22943 22944 22945 22946 22947 22948 22949 22950 22951 22952 22953 22954 22955 22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 | |