async def iter_list_topics_detection_jobs(
self,
*,
config_overrides: Optional[AsyncComprehendClientConfig] = None,
filter: Optional[
"capo_comprehend.types.topics_detection_job_filter.TopicsDetectionJobFilter"
] = None,
next_token: Optional["capo_comprehend.types.string.String"] = None,
max_results: Optional[
"capo_comprehend.types.max_results_integer.MaxResultsInteger"
] = None,
) -> "AsyncIterator[capo_comprehend.types.list_topics_detection_jobs_response.ListTopicsDetectionJobsResponse]":
_token = next_token
while True:
_response = await self.list_topics_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