list_model_package_groups
¶
list_model_package_groups(
*,
config_overrides: Optional[SageMakerClientConfig] = None,
creation_time_after: Optional[CreationTime] = None,
creation_time_before: Optional[CreationTime] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[NameContains] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[ModelPackageGroupSortBy] = None,
sort_order: Optional[SortOrder] = None,
cross_account_filter_option: Optional[CrossAccountFilterOption] = None,
) -> ListModelPackageGroupsOutput
Gets a list of the model groups in your Amazon Web Services account.
Parameters:
-
creation_time_after(Optional[CreationTime], default:None) –A filter that returns only model groups created after the specified time.
-
creation_time_before(Optional[CreationTime], default:None) –A filter that returns only model groups created before the specified time.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response.
-
name_contains(Optional[NameContains], default:None) –A string in the model group name. This filter returns only model groups whose name contains the specified string.
-
next_token(Optional[NextToken], default:None) –If the result of the previous
ListModelPackageGroupsrequest was truncated, the response includes aNextToken. To retrieve the next set of model groups, use the token in the next request. -
sort_by(Optional[ModelPackageGroupSortBy], default:None) –The field to sort results by. The default is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order for results. The default is
Ascending. -
cross_account_filter_option(Optional[CrossAccountFilterOption], default:None) –A filter that returns either model groups shared with you or model groups in your own account. When the value is
CrossAccount, the results show the resources made discoverable to you from other accounts. When the value isSameAccountornull, the results show resources from your account. The default isSameAccount.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342 25343 25344 25345 25346 25347 25348 25349 25350 25351 25352 25353 25354 25355 25356 25357 25358 25359 25360 25361 25362 25363 25364 25365 25366 25367 25368 25369 25370 25371 25372 25373 25374 25375 25376 25377 25378 25379 25380 25381 25382 25383 25384 25385 25386 25387 25388 25389 25390 25391 25392 25393 | |