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
22956 22957 22958 22959 22960 22961 22962 22963 22964 22965 22966 22967 22968 22969 22970 22971 22972 22973 22974 22975 22976 22977 22978 22979 22980 22981 22982 22983 22984 22985 22986 22987 22988 22989 22990 22991 22992 22993 22994 22995 22996 22997 22998 22999 23000 23001 23002 23003 23004 23005 23006 23007 23008 23009 23010 23011 23012 23013 23014 23015 23016 23017 23018 23019 23020 23021 23022 23023 23024 23025 23026 23027 23028 23029 23030 23031 23032 23033 23034 23035 23036 23037 23038 23039 23040 23041 23042 23043 23044 23045 23046 23047 23048 23049 | |