async def iter_describe_load_balancer_target_groups(
self,
*,
config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
auto_scaling_group_name: Optional[
"capo_auto_scaling.types.xml_string_max_len255.XmlStringMaxLen255"
] = None,
next_token: Optional["capo_auto_scaling.types.xml_string.XmlString"] = None,
max_records: Optional["capo_auto_scaling.types.max_records.MaxRecords"] = None,
) -> "AsyncIterator[capo_auto_scaling.types.describe_load_balancer_target_groups_response.DescribeLoadBalancerTargetGroupsResponse]":
_token = next_token
while True:
_response = await self.describe_load_balancer_target_groups(
config_overrides=config_overrides,
auto_scaling_group_name=auto_scaling_group_name,
next_token=_token,
max_records=max_records,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break