def iter_describe_auto_scaling_groups(
self,
*,
config_overrides: Optional[AutoScalingClientConfig] = None,
auto_scaling_group_names: Optional[
"capo_auto_scaling.types.auto_scaling_group_names.AutoScalingGroupNames"
] = None,
include_instances: Optional[
"capo_auto_scaling.types.include_instances.IncludeInstances"
] = None,
next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
filters: Optional["capo_auto_scaling.types.filters.Filters"] = None,
) -> "Iterator[capo_auto_scaling.types.auto_scaling_group.AutoScalingGroup]":
_token = next_token
while True:
_response = self.describe_auto_scaling_groups(
config_overrides=config_overrides,
auto_scaling_group_names=auto_scaling_group_names,
include_instances=include_instances,
next_token=_token,
max_records=max_records,
filters=filters,
)
_page = _resolve_path(_response, ("auto_scaling_groups",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break