Skip to content

iter_list_rum_metrics_destinations async

iter_list_rum_metrics_destinations(
    app_monitor_name: AppMonitorName,
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    max_results: Optional[MaxResultsInteger] = None,
    next_token: Optional[str] = None,
) -> AsyncIterator[MetricDestinationSummary]
Source code in docs_src/capo_rum/_services/async_rum.py
async def iter_list_rum_metrics_destinations(
    self,
    app_monitor_name: "capo_rum.types.app_monitor_name.AppMonitorName",
    *,
    config_overrides: Optional[AsyncRUMClientConfig] = None,
    max_results: Optional[
        "capo_rum.types.max_results_integer.MaxResultsInteger"
    ] = None,
    next_token: Optional[str] = None,
) -> "AsyncIterator[capo_rum.types.metric_destination_summary.MetricDestinationSummary]":
    _token = next_token
    while True:
        _response = await self.list_rum_metrics_destinations(
            app_monitor_name,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("destinations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break