async def iter_describe_instance_patches(
self,
instance_id: "capo_ssm.types.instance_id.InstanceId",
*,
config_overrides: Optional[AsyncSSMClientConfig] = None,
filters: Optional[
"capo_ssm.types.patch_orchestrator_filter_list.PatchOrchestratorFilterList"
] = None,
next_token: Optional["capo_ssm.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_ssm.types.patch_compliance_max_results.PatchComplianceMaxResults"
] = None,
) -> "AsyncIterator[capo_ssm.types.patch_compliance_data.PatchComplianceData]":
_token = next_token
while True:
_response = await self.describe_instance_patches(
instance_id,
config_overrides=config_overrides,
filters=filters,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("patches",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break