def iter_list_restore_testing_selections(
self,
restore_testing_plan_name: str,
*,
config_overrides: Optional[BackupClientConfig] = None,
max_results: Optional[
"capo_backup.types.list_restore_testing_selections_input_max_results_integer.ListRestoreTestingSelectionsInputMaxResultsInteger"
] = None,
next_token: Optional[str] = None,
) -> "Iterator[capo_backup.types.restore_testing_selection_for_list.RestoreTestingSelectionForList]":
_token = next_token
while True:
_response = self.list_restore_testing_selections(
restore_testing_plan_name,
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
)
_page = _resolve_path(_response, ("restore_testing_selections",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break