list_model_versions
async
¶
list_model_versions(
model_name: ModelName,
*,
config_overrides: Optional[AsyncLookoutEquipmentClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[MaxResults] = None,
status: Optional[ModelVersionStatus] = None,
source_type: Optional[ModelVersionSourceType] = None,
created_at_end_time: Optional[Timestamp] = None,
created_at_start_time: Optional[Timestamp] = None,
max_model_version: Optional[ModelVersion] = None,
min_model_version: Optional[ModelVersion] = None,
) -> ListModelVersionsResponse
Generates a list of all model versions for a given model, including the model version, model version ARN, and status. To list a subset of versions, use the MaxModelVersion and MinModelVersion fields.
Parameters:
-
model_name(ModelName) –Then name of the machine learning model for which the model versions are to be listed.
-
next_token(Optional[NextToken], default:None) –If the total number of results exceeds the limit that the response can display, the response returns an opaque pagination token indicating where to continue the listing of machine learning model versions. Use this token in the
NextTokenfield in the request to list the next page of results. -
max_results(Optional[MaxResults], default:None) –Specifies the maximum number of machine learning model versions to list.
-
status(Optional[ModelVersionStatus], default:None) –Filter the results based on the current status of the model version.
-
source_type(Optional[ModelVersionSourceType], default:None) –Filter the results based on the way the model version was generated.
-
created_at_end_time(Optional[Timestamp], default:None) –Filter results to return all the model versions created before this time.
-
created_at_start_time(Optional[Timestamp], default:None) –Filter results to return all the model versions created after this time.
-
max_model_version(Optional[ModelVersion], default:None) –Specifies the highest version of the model to return in the list.
-
min_model_version(Optional[ModelVersion], default:None) –Specifies the lowest version of the model to return in the list.
Raises:
-
AccessDeniedException–The request could not be completed because you do not have access to the resource.
-
InternalServerException–Processing of the request has failed because of an unknown error, exception or failure.
-
ResourceNotFoundException–The resource requested could not be found. Verify the resource ID and retry your request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy constraints specified by Amazon Lookout for Equipment or a related Amazon Web Services service that's being utilized.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_lookoutequipment/_services/async_lookout_equipment.py
2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 | |