AddRuleProps Struct
Properties for adding a conditional load balancing rule.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_elasticloadbalancingv2 as elbv2 } from 'aws-cdk-lib';
declare const listenerCondition: elbv2.ListenerCondition;
const addRuleProps: elbv2.AddRuleProps = {
conditions: [listenerCondition],
priority: 123,
};
Properties
conditionsoptionalListenerCondition[]conditionsoptionaltyping.List[ListenerCondition]conditionsoptionalList<ListenerCondition>ConditionsoptionalListenerCondition[]Conditionsoptional*[]ListenerCondition#Rule applies if matches the conditions.
Default: No conditions.
priorityoptionalnumberpriorityoptionalint | floatpriorityoptionalNumberPriorityoptionaldoublePriorityoptional*float64#Priority of this target group.
Default: Target groups are used as defaults
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.