Skip to content

iter_describe_load_balancer_target_groups async

iter_describe_load_balancer_target_groups(
    *,
    config_overrides: Optional[AsyncAutoScalingClientConfig] = None,
    auto_scaling_group_name: Optional[XmlStringMaxLen255] = None,
    next_token: Optional[XmlString] = None,
    max_records: Optional[MaxRecords] = None,
) -> AsyncIterator[DescribeLoadBalancerTargetGroupsResponse]
Source code in docs_src/capo_auto_scaling/_services/async_auto_scaling.py
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