Skip to content

iter_list_flows async

iter_list_flows(
    aws_account_id: AccountId,
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[FlowMaxResults] = None,
) -> AsyncIterator[FlowSummary]
Source code in docs_src/capo_quicksight/_services/async_quick_sight.py
async def iter_list_flows(
    self,
    aws_account_id: "capo_quicksight.types.account_id.AccountId",
    *,
    config_overrides: Optional[AsyncQuickSightClientConfig] = None,
    next_token: Optional[str] = None,
    max_results: Optional[
        "capo_quicksight.types.flow_max_results.FlowMaxResults"
    ] = None,
) -> "AsyncIterator[capo_quicksight.types.flow_summary.FlowSummary]":
    _token = next_token
    while True:
        _response = await self.list_flows(
            aws_account_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("flow_summary_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break