Skip to content

WeightedTargetGroup

Source code in docs_src/capo_vpc_lattice/types/weighted_target_group.py
class WeightedTargetGroup(TypedDict, closed=True):
    target_group_identifier: (
        "capo_vpc_lattice.types.target_group_identifier.TargetGroupIdentifier"
    )
    """<p>The ID or ARN of the target group.</p>"""
    weight: NotRequired["capo_vpc_lattice.types.target_group_weight.TargetGroupWeight"]
    """<p>Only required if you specify multiple target groups for a forward action. The weight determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.</p>"""

target_group_identifier instance-attribute

target_group_identifier: TargetGroupIdentifier

The ID or ARN of the target group.

weight instance-attribute

weight: NotRequired[TargetGroupWeight]

Only required if you specify multiple target groups for a forward action. The weight determines how requests are distributed to the target group. For example, if you specify two target groups, each with a weight of 10, each target group receives half the requests. If you specify two target groups, one with a weight of 10 and the other with a weight of 20, the target group with a weight of 20 receives twice as many requests as the other target group. If there's only one target group specified, then the default value is 100.