list_model_packages
async
¶
list_model_packages(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = 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/async_sage_maker.py
25771 25772 25773 25774 25775 25776 25777 25778 25779 25780 25781 25782 25783 25784 25785 25786 25787 25788 25789 25790 25791 25792 25793 25794 25795 25796 25797 25798 25799 25800 25801 25802 25803 25804 25805 25806 25807 25808 25809 25810 25811 25812 25813 25814 25815 25816 25817 25818 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 25830 25831 25832 25833 25834 25835 25836 25837 25838 25839 25840 25841 25842 25843 25844 25845 25846 25847 25848 25849 25850 25851 25852 25853 25854 25855 25856 25857 25858 25859 25860 25861 25862 25863 25864 | |