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
22658 22659 22660 22661 22662 22663 22664 22665 22666 22667 22668 22669 22670 22671 22672 22673 22674 22675 22676 22677 22678 22679 22680 22681 22682 22683 22684 22685 22686 22687 22688 22689 22690 22691 22692 22693 22694 22695 22696 22697 22698 22699 22700 22701 22702 22703 22704 22705 22706 22707 22708 22709 22710 22711 22712 22713 22714 22715 22716 22717 22718 22719 22720 22721 22722 22723 22724 22725 22726 22727 22728 22729 22730 22731 22732 22733 22734 22735 22736 22737 22738 22739 22740 22741 22742 22743 22744 22745 22746 22747 22748 22749 22750 | |