Skip to content

iter_describe_stack_events async

iter_describe_stack_events(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_name: Optional[StackName] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[StackEvent]
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def iter_describe_stack_events(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_name: Optional["capo_cloudformation.types.stack_name.StackName"] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_cloudformation.types.stack_event.StackEvent]":
    _token = next_token
    while True:
        _response = await self.describe_stack_events(
            config_overrides=config_overrides,
            stack_name=stack_name,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("stack_events",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break