list_model_package_groups
async
¶
list_model_package_groups(
*,
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,
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/async_sage_maker.py
22830 22831 22832 22833 22834 22835 22836 22837 22838 22839 22840 22841 22842 22843 22844 22845 22846 22847 22848 22849 22850 22851 22852 22853 22854 22855 22856 22857 22858 22859 22860 22861 22862 22863 22864 22865 22866 22867 22868 22869 22870 22871 22872 22873 22874 22875 22876 22877 22878 22879 22880 22881 22882 22883 22884 22885 22886 22887 22888 22889 22890 22891 22892 22893 22894 22895 22896 22897 22898 22899 22900 22901 22902 22903 22904 22905 22906 22907 22908 22909 22910 22911 | |