WeightedTargetGroup

class aws_cdk.aws_elasticloadbalancingv2.WeightedTargetGroup(*, target_group, weight=None)

Bases: object

A Target Group and weight combination.

Parameters:
  • target_group (IApplicationTargetGroup) – The target group.

  • weight (Union[int, float, None]) – The target group’s weight. Range is [0..1000). Default: 1

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_elasticloadbalancingv2 as elbv2

# application_target_group: elbv2.ApplicationTargetGroup

weighted_target_group = elbv2.WeightedTargetGroup(
    target_group=application_target_group,

    # the properties below are optional
    weight=123
)

Attributes

target_group

The target group.

weight

The target group’s weight.

Range is [0..1000).

Default:

1