Skip to content

iter_list_streams async

iter_list_streams(
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
    ascending_order: Optional[AscendingOrder] = None,
) -> AsyncIterator[StreamSummary]
Source code in docs_src/capo_iot/_services/async_io_t.py
async def iter_list_streams(
    self,
    *,
    config_overrides: Optional[AsyncIoTClientConfig] = None,
    max_results: Optional["capo_iot.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_iot.types.next_token.NextToken"] = None,
    ascending_order: Optional[
        "capo_iot.types.ascending_order.AscendingOrder"
    ] = None,
) -> "AsyncIterator[capo_iot.types.stream_summary.StreamSummary]":
    _token = next_token
    while True:
        _response = await self.list_streams(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            ascending_order=ascending_order,
        )
        _page = _resolve_path(_response, ("streams",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break