interface AddRuleProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticLoadBalancingV2.AddRuleProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#AddRuleProps |
![]() | software.amazon.awscdk.services.elasticloadbalancingv2.AddRuleProps |
![]() | aws_cdk.aws_elasticloadbalancingv2.AddRuleProps |
![]() | aws-cdk-lib » aws_elasticloadbalancingv2 » AddRuleProps |
Properties for adding a conditional load balancing rule.
Example
// 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
Name | Type | Description |
---|---|---|
conditions? | Listener [] | Rule applies if matches the conditions. |
priority? | number | Priority of this target group. |
conditions?
Type:
Listener
[]
(optional, default: No conditions.)
Rule applies if matches the conditions.
priority?
Type:
number
(optional, default: Target groups are used as defaults)
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.