async def iter_list_scheduled_queries(
self,
*,
config_overrides: Optional[AsyncCloudWatchLogsClientConfig] = None,
max_results: Optional[
"capo_cloudwatch_logs.types.list_scheduled_queries_max_results.ListScheduledQueriesMaxResults"
] = None,
next_token: Optional["capo_cloudwatch_logs.types.next_token.NextToken"] = None,
state: Optional[
"capo_cloudwatch_logs.types.scheduled_query_state.ScheduledQueryState"
] = None,
schedule_type: Optional[
"capo_cloudwatch_logs.types.schedule_type.ScheduleType"
] = None,
) -> "AsyncIterator[capo_cloudwatch_logs.types.scheduled_query_summary.ScheduledQuerySummary]":
_token = next_token
while True:
_response = await self.list_scheduled_queries(
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
state=state,
schedule_type=schedule_type,
)
_page = _resolve_path(_response, ("scheduled_queries",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break