list_models
async
¶
list_models(
*,
config_overrides: Optional[AsyncSageMakerClientConfig] = None,
sort_by: Optional[ModelSortKey] = None,
sort_order: Optional[OrderKey] = None,
next_token: Optional[PaginationToken] = None,
max_results: Optional[MaxResults] = None,
name_contains: Optional[ModelNameContains] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
) -> ListModelsOutput
Lists models created with the CreateModel API.
Parameters:
-
sort_by(Optional[ModelSortKey], default:None) –Sorts the list of results. The default is
CreationTime. -
sort_order(Optional[OrderKey], default:None) –The sort order for results. The default is
Descending. -
next_token(Optional[PaginationToken], default:None) –If the response to a previous
ListModelsrequest was truncated, the response includes aNextToken. To retrieve the next set of models, use the token in the next request. -
max_results(Optional[MaxResults], default:None) –The maximum number of models to return in the response.
-
name_contains(Optional[ModelNameContains], default:None) –A string in the model name. This filter returns only models whose name contains the specified string.
-
creation_time_before(Optional[Timestamp], default:None) –A filter that returns only models created before the specified time (timestamp).
-
creation_time_after(Optional[Timestamp], default:None) –A filter that returns only models with a creation time greater than or equal to the specified time (timestamp).
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
26045 26046 26047 26048 26049 26050 26051 26052 26053 26054 26055 26056 26057 26058 26059 26060 26061 26062 26063 26064 26065 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 26077 26078 26079 26080 26081 26082 26083 26084 26085 26086 26087 26088 26089 26090 26091 26092 26093 26094 26095 26096 26097 26098 26099 26100 26101 26102 26103 26104 26105 26106 26107 26108 26109 26110 26111 26112 26113 26114 26115 26116 26117 26118 26119 26120 | |