def iter_list_monitoring_executions(
self,
*,
config_overrides: Optional[SageMakerClientConfig] = None,
monitoring_schedule_name: Optional[
"capo_sagemaker.types.monitoring_schedule_name.MonitoringScheduleName"
] = None,
endpoint_name: Optional[
"capo_sagemaker.types.endpoint_name.EndpointName"
] = None,
sort_by: Optional[
"capo_sagemaker.types.monitoring_execution_sort_key.MonitoringExecutionSortKey"
] = None,
sort_order: Optional["capo_sagemaker.types.sort_order.SortOrder"] = None,
next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
scheduled_time_before: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
scheduled_time_after: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
creation_time_before: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
creation_time_after: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
last_modified_time_before: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
last_modified_time_after: Optional[
"capo_sagemaker.types.timestamp.Timestamp"
] = None,
status_equals: Optional[
"capo_sagemaker.types.execution_status.ExecutionStatus"
] = None,
monitoring_job_definition_name: Optional[
"capo_sagemaker.types.monitoring_job_definition_name.MonitoringJobDefinitionName"
] = None,
monitoring_type_equals: Optional[
"capo_sagemaker.types.monitoring_type.MonitoringType"
] = None,
) -> "Iterator[capo_sagemaker.types.monitoring_execution_summary.MonitoringExecutionSummary]":
_token = next_token
while True:
_response = self.list_monitoring_executions(
config_overrides=config_overrides,
monitoring_schedule_name=monitoring_schedule_name,
endpoint_name=endpoint_name,
sort_by=sort_by,
sort_order=sort_order,
next_token=_token,
max_results=max_results,
scheduled_time_before=scheduled_time_before,
scheduled_time_after=scheduled_time_after,
creation_time_before=creation_time_before,
creation_time_after=creation_time_after,
last_modified_time_before=last_modified_time_before,
last_modified_time_after=last_modified_time_after,
status_equals=status_equals,
monitoring_job_definition_name=monitoring_job_definition_name,
monitoring_type_equals=monitoring_type_equals,
)
_page = _resolve_path(_response, ("monitoring_execution_summaries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break