def iter_list_recovery_plan_steps(
self,
recovery_plan_arn: "capo_drs.types.strict_drsarn.StrictDRSARN",
*,
config_overrides: Optional[drsClientConfig] = 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_step.RecoveryPlanStep]":
_token = next_token
while True:
_response = self.list_recovery_plan_steps(
recovery_plan_arn,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("recovery_plan_steps",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break