async def iter_describe_warm_pool(
self,
*,
config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
auto_scaling_group_name: Optional[
"capo_auto_scaling.types.xml_string_max_len255.XmlStringMaxLen255"
] = None,
max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
) -> "AsyncIterator[capo_auto_scaling.types.instance.Instance]":
_token = next_token
while True:
_response = await self.describe_warm_pool(
config_overrides=config_overrides,
auto_scaling_group_name=auto_scaling_group_name,
max_records=max_records,
next_token=_token,
)
_page = _resolve_path(_response, ("instances",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break