def iter_describe_instance_refreshes(
self,
*,
config_overrides: Optional[AutoScalingClientConfig] = None,
auto_scaling_group_name: Optional[
"capo_auto_scaling.types.xml_string_max_len255.XmlStringMaxLen255"
] = None,
instance_refresh_ids: Optional[
"capo_auto_scaling.types.instance_refresh_ids.InstanceRefreshIds"
] = None,
next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
) -> "Iterator[capo_auto_scaling.types.describe_instance_refreshes_answer.DescribeInstanceRefreshesAnswer]":
_token = next_token
while True:
_response = self.describe_instance_refreshes(
config_overrides=config_overrides,
auto_scaling_group_name=auto_scaling_group_name,
instance_refresh_ids=instance_refresh_ids,
next_token=_token,
max_records=max_records,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break