AddApplicationTargetGroupsProps
- class aws_cdk.aws_elasticloadbalancingv2.AddApplicationTargetGroupsProps(*, conditions=None, priority=None, target_groups)
Bases:
AddRuleProps
Properties for adding a new target group to a listener.
- Parameters:
conditions (
Optional
[Sequence
[ListenerCondition
]]) – Rule applies if matches the conditions. Default: - No conditions.priority (
Union
[int
,float
,None
]) – Priority of this target group. The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions. Priorities must be unique. Default: Target groups are used as defaultstarget_groups (
Sequence
[IApplicationTargetGroup
]) – Target groups to forward requests to.
- 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 # listener_condition: elbv2.ListenerCondition add_application_target_groups_props = elbv2.AddApplicationTargetGroupsProps( target_groups=[application_target_group], # the properties below are optional conditions=[listener_condition], priority=123 )
Attributes
- conditions
Rule applies if matches the conditions.
- priority
Priority of this target group.
The rule with the lowest priority will be used for every request. If priority is not given, these target groups will be added as defaults, and must not have conditions.
Priorities must be unique.
- Default:
Target groups are used as defaults
- target_groups
Target groups to forward requests to.