async def iter_list_schedules(
self,
*,
config_overrides: Optional[AsyncDataBrewClientConfig] = None,
job_name: Optional["capo_databrew.types.job_name.JobName"] = None,
max_results: Optional[
"capo_databrew.types.max_results100.MaxResults100"
] = None,
next_token: Optional["capo_databrew.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_databrew.types.schedule.Schedule]":
_token = next_token
while True:
_response = await self.list_schedules(
config_overrides=config_overrides,
job_name=job_name,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("schedules",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break