def iter_list_recovery_plan_executions(
self,
*,
config_overrides: Optional[drsClientConfig] = 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,
) -> "Iterator[capo_drs.types.recovery_plan_execution_summary.RecoveryPlanExecutionSummary]":
_token = next_token
while True:
_response = 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