def iter_list_training_plans(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
start_time_after: Optional["capo_sagemaker.types.timestamp.Timestamp"] = None,
start_time_before: Optional["capo_sagemaker.types.timestamp.Timestamp"] = None,
sort_by: Optional[
"capo_sagemaker.types.training_plan_sort_by.TrainingPlanSortBy"
] = None,
sort_order: Optional[
"capo_sagemaker.types.training_plan_sort_order.TrainingPlanSortOrder"
] = None,
filters: Optional[
"capo_sagemaker.types.training_plan_filters.TrainingPlanFilters"
] = None,
) -> "Iterator[capo_sagemaker.types.training_plan_summary.TrainingPlanSummary]":
_token = next_token
while True:
_response = self.list_training_plans(
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
start_time_after=start_time_after,
start_time_before=start_time_before,
sort_by=sort_by,
sort_order=sort_order,
filters=filters,
)
_page = _resolve_path(_response, ("training_plan_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break