Skip to content

iter_list_recovery_plans async

iter_list_recovery_plans(
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
    max_results: Optional[MaxResultsType] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[RecoveryPlanSummary]
Source code in docs_src/capo_drs/_services/async_drs.py
async def iter_list_recovery_plans(
    self,
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
    max_results: Optional["capo_drs.types.max_results_type.MaxResultsType"] = None,
    next_token: Optional["capo_drs.types.pagination_token.PaginationToken"] = None,
) -> "AsyncIterator[capo_drs.types.recovery_plan_summary.RecoveryPlanSummary]":
    _token = next_token
    while True:
        _response = await self.list_recovery_plans(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("recovery_plans",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break