Skip to content

iter_list_recovery_plan_executions async

iter_list_recovery_plan_executions(
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
    recovery_plan_arn: Optional[StrictDRSARN] = None,
    status: Optional[RecoveryPlanExecutionStatus] = None,
    max_results: Optional[MaxResultsType] = None,
    next_token: Optional[PaginationToken] = None,
) -> AsyncIterator[RecoveryPlanExecutionSummary]
Source code in docs_src/capo_drs/_services/async_drs.py
async def iter_list_recovery_plan_executions(
    self,
    *,
    config_overrides: Optional[AsyncdrsClientConfig] = None,
    recovery_plan_arn: Optional["capo_drs.types.strict_drsarn.StrictDRSARN"] = None,
    status: Optional[
        "capo_drs.types.recovery_plan_execution_status.RecoveryPlanExecutionStatus"
    ] = 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_execution_summary.RecoveryPlanExecutionSummary]":
    _token = next_token
    while True:
        _response = await self.list_recovery_plan_executions(
            config_overrides=config_overrides,
            recovery_plan_arn=recovery_plan_arn,
            status=status,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("recovery_plan_executions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break