list_model_packages
¶
list_model_packages(
*,
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,
model_approval_status: Optional[ModelApprovalStatus] = None,
model_package_group_name: Optional[ArnOrName] = None,
model_package_type: Optional[ModelPackageType] = None,
next_token: Optional[NextToken] = None,
sort_by: Optional[ModelPackageSortBy] = None,
sort_order: Optional[SortOrder] = None,
) -> ListModelPackagesOutput
Lists the model packages that have been created.
Parameters:
-
creation_time_after(Optional[CreationTime], default:None) –A filter that returns only model packages created after the specified time (timestamp).
-
creation_time_before(Optional[CreationTime], default:None) –A filter that returns only model packages created before the specified time (timestamp).
-
max_results(Optional[MaxResults], default:None) –The maximum number of model packages to return in the response.
-
name_contains(Optional[NameContains], default:None) –A string in the model package name. This filter returns only model packages whose name contains the specified string.
-
model_approval_status(Optional[ModelApprovalStatus], default:None) –A filter that returns only the model packages with the specified approval status.
-
model_package_group_name(Optional[ArnOrName], default:None) –A filter that returns only model versions that belong to the specified model group.
-
model_package_type(Optional[ModelPackageType], default:None) –A filter that returns only the model packages of the specified type. This can be one of the following values.
-
UNVERSIONED- List only unversioined models. This is the default value if noModelPackageTypeis specified. -
VERSIONED- List only versioned models. -
BOTH- List both versioned and unversioned models.
-
-
next_token(Optional[NextToken], default:None) –If the response to a previous
ListModelPackagesrequest was truncated, the response includes aNextToken. To retrieve the next set of model packages, use the token in the next request. -
sort_by(Optional[ModelPackageSortBy], default:None) –The parameter by which to sort the results. The default is
CreationTime. -
sort_order(Optional[SortOrder], default:None) –The sort order for the results. The default is
Ascending.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_sagemaker/_services/sage_maker.py
25438 25439 25440 25441 25442 25443 25444 25445 25446 25447 25448 25449 25450 25451 25452 25453 25454 25455 25456 25457 25458 25459 25460 25461 25462 25463 25464 25465 25466 25467 25468 25469 25470 25471 25472 25473 25474 25475 25476 25477 25478 25479 25480 25481 25482 25483 25484 25485 25486 25487 25488 25489 25490 25491 25492 25493 25494 25495 25496 25497 25498 25499 25500 25501 25502 25503 25504 25505 25506 25507 25508 25509 25510 25511 25512 25513 25514 25515 25516 25517 25518 25519 25520 25521 25522 25523 25524 25525 25526 25527 25528 25529 25530 | |