def iter_describe_events(
self,
*,
config_overrides: Optional[ElastiCacheClientConfig] = None,
source_identifier: Optional["capo_elasticache.types.string.String"] = None,
source_type: Optional["capo_elasticache.types.source_type.SourceType"] = None,
start_time: Optional["capo_elasticache.types.t_stamp.TStamp"] = None,
end_time: Optional["capo_elasticache.types.t_stamp.TStamp"] = None,
duration: Optional[
"capo_elasticache.types.integer_optional.IntegerOptional"
] = None,
max_records: Optional[
"capo_elasticache.types.integer_optional.IntegerOptional"
] = None,
marker: Optional["capo_elasticache.types.string.String"] = None,
) -> "Iterator[capo_elasticache.types.event.Event]":
_token = marker
while True:
_response = self.describe_events(
config_overrides=config_overrides,
source_identifier=source_identifier,
source_type=source_type,
start_time=start_time,
end_time=end_time,
duration=duration,
max_records=max_records,
marker=_token,
)
_page = _resolve_path(_response, ("events",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("marker",))
if not _token:
break