Skip to content

iter_list_dashboards async

iter_list_dashboards(
    *,
    config_overrides: Optional[AsyncCloudWatchClientConfig] = None,
    dashboard_name_prefix: Optional[DashboardNamePrefix] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[DashboardEntry]
Source code in docs_src/capo_cloudwatch/_services/async_cloud_watch.py
async def iter_list_dashboards(
    self,
    *,
    config_overrides: Optional[AsyncCloudWatchClientConfig] = None,
    dashboard_name_prefix: Optional[
        "capo_cloudwatch.types.dashboard_name_prefix.DashboardNamePrefix"
    ] = None,
    next_token: Optional["capo_cloudwatch.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_cloudwatch.types.dashboard_entry.DashboardEntry]":
    _token = next_token
    while True:
        _response = await self.list_dashboards(
            config_overrides=config_overrides,
            dashboard_name_prefix=dashboard_name_prefix,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("dashboard_entries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break