Skip to content

iter_list_dashboards async

iter_list_dashboards(
    project_id: ID,
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[DashboardSummary]
Source code in docs_src/capo_iotsitewise/_services/async_io_t_site_wise.py
async def iter_list_dashboards(
    self,
    project_id: "capo_iotsitewise.types.id.ID",
    *,
    config_overrides: Optional[AsyncIoTSiteWiseClientConfig] = None,
    next_token: Optional["capo_iotsitewise.types.next_token.NextToken"] = None,
    max_results: Optional["capo_iotsitewise.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_iotsitewise.types.dashboard_summary.DashboardSummary]":
    _token = next_token
    while True:
        _response = await self.list_dashboards(
            project_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("dashboard_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break