def iter_get_scheduled_query_history(
self,
identifier: "capo_cloudwatch_logs.types.scheduled_query_identifier.ScheduledQueryIdentifier",
start_time: "capo_cloudwatch_logs.types.timestamp.Timestamp",
end_time: "capo_cloudwatch_logs.types.timestamp.Timestamp",
*,
config_overrides: Optional[CloudWatchLogsClientConfig] = None,
execution_statuses: Optional[
"capo_cloudwatch_logs.types.execution_status_list.ExecutionStatusList"
] = None,
max_results: Optional[
"capo_cloudwatch_logs.types.get_scheduled_query_history_max_results.GetScheduledQueryHistoryMaxResults"
] = None,
next_token: Optional["capo_cloudwatch_logs.types.next_token.NextToken"] = None,
) -> "Iterator[capo_cloudwatch_logs.types.trigger_history_record.TriggerHistoryRecord]":
_token = next_token
while True:
_response = self.get_scheduled_query_history(
identifier,
start_time,
end_time,
config_overrides=config_overrides,
execution_statuses=execution_statuses,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("trigger_history",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break