def iter_list_page_resolutions(
self,
page_id: "capo_ssm_contacts.types.ssm_contacts_arn.SsmContactsArn",
*,
config_overrides: Optional[SSMContactsClientConfig] = None,
next_token: Optional[
"capo_ssm_contacts.types.pagination_token.PaginationToken"
] = None,
) -> "Iterator[capo_ssm_contacts.types.resolution_contact.ResolutionContact]":
_token = next_token
while True:
_response = self.list_page_resolutions(
page_id,
config_overrides=config_overrides,
next_token=_token,
)
_page = _resolve_path(_response, ("page_resolutions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break