def iter_describe_instance_patch_states(
self,
instance_ids: "capo_ssm.types.instance_id_list.InstanceIdList",
*,
config_overrides: Optional[SSMClientConfig] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_ssm.types.patch_compliance_max_results.PatchComplianceMaxResults"
] = None,
) -> "Iterator[capo_ssm.types.instance_patch_state.InstancePatchState]":
_token = next_token
while True:
_response = self.describe_instance_patch_states(
instance_ids,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("instance_patch_states",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break