list_models
async
¶
list_models(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
23230 23231 23232 23233 23234 23235 23236 23237 23238 23239 23240 23241 23242 23243 23244 23245 23246 23247 23248 23249 23250 23251 23252 23253 23254 23255 23256 23257 23258 23259 23260 23261 23262 23263 23264 23265 23266 23267 23268 23269 23270 23271 23272 23273 23274 23275 23276 23277 23278 23279 23280 23281 23282 23283 23284 23285 23286 23287 23288 23289 23290 23291 23292 23293 23294 23295 23296 23297 23298 23299 23300 23301 23302 23303 23304 23305 | |