Skip to content

iter_list_omni_dashboards async

iter_list_omni_dashboards(
    space_id: SpaceId,
    *,
    config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
    name_prefix: Optional[str] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[int] = None,
) -> AsyncIterator[OmniDashboardSummary]
Source code in docs_src/capo_cloudwatchomni/_services/async_cloud_watch_omni.py
async def iter_list_omni_dashboards(
    self,
    space_id: "capo_cloudwatchomni.types.space_id.SpaceId",
    *,
    config_overrides: Optional[AsyncCloudWatchOmniClientConfig] = None,
    name_prefix: Optional[str] = None,
    next_token: Optional["capo_cloudwatchomni.types.next_token.NextToken"] = None,
    max_results: Optional[int] = None,
) -> "AsyncIterator[capo_cloudwatchomni.types.omni_dashboard_summary.OmniDashboardSummary]":
    _token = next_token
    while True:
        _response = await self.list_omni_dashboards(
            space_id,
            config_overrides=config_overrides,
            name_prefix=name_prefix,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break