def iter_list_events_detection_jobs(
self,
*,
config_overrides: Optional[ComprehendClientConfig] = None,
filter: Optional[
"capo_comprehend.types.events_detection_job_filter.EventsDetectionJobFilter"
] = None,
next_token: Optional["capo_comprehend.types.string.String"] = None,
max_results: Optional[
"capo_comprehend.types.max_results_integer.MaxResultsInteger"
] = None,
) -> "Iterator[capo_comprehend.types.list_events_detection_jobs_response.ListEventsDetectionJobsResponse]":
_token = next_token
while True:
_response = self.list_events_detection_jobs(
config_overrides=config_overrides,
filter=filter,
next_token=_token,
max_results=max_results,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break