async def iter_describe_events(
self,
*,
config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
stack_name: Optional[
"capo_cloudformation.types.stack_name_or_id.StackNameOrId"
] = None,
change_set_name: Optional[
"capo_cloudformation.types.change_set_name_or_id.ChangeSetNameOrId"
] = None,
operation_id: Optional[
"capo_cloudformation.types.operation_id.OperationId"
] = None,
filters: Optional["capo_cloudformation.types.event_filter.EventFilter"] = None,
next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_cloudformation.types.operation_event.OperationEvent]":
_token = next_token
while True:
_response = await self.describe_events(
config_overrides=config_overrides,
stack_name=stack_name,
change_set_name=change_set_name,
operation_id=operation_id,
filters=filters,
next_token=_token,
)
_page = _resolve_path(_response, ("operation_events",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break