list_imported_models
async
¶
list_imported_models(
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
creation_time_before: Optional[Timestamp] = None,
creation_time_after: Optional[Timestamp] = None,
name_contains: Optional[ImportedModelName] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[PaginationToken] = None,
sort_by: Optional[SortModelsBy] = None,
sort_order: Optional[SortOrder] = None,
) -> ListImportedModelsResponse
Returns a list of models you've imported. You can filter the results to return based on one or more criteria. For more information, see Import a customized model in the Amazon Bedrock User Guide.
Parameters:
-
creation_time_before(Optional[Timestamp], default:None) –Return imported models that created before the specified time.
-
creation_time_after(Optional[Timestamp], default:None) –Return imported models that were created after the specified time.
-
name_contains(Optional[ImportedModelName], default:None) –Return imported models only if the model name contains these characters.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the
nextTokenfield when making another request to return the next batch of results. -
next_token(Optional[PaginationToken], default:None) –If the total number of results is greater than the
maxResultsvalue provided in the request, enter the token returned in thenextTokenfield in the response in this field to return the next batch of results. -
sort_by(Optional[SortModelsBy], default:None) –The field to sort by in the returned list of imported models.
-
sort_order(Optional[SortOrder], default:None) –Specifies whetehr to sort the results in ascending or descending order.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 | |