Class AddRuleProps
Properties for adding a conditional load balancing rule.
Inheritance
System.Object
AddRuleProps
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AddRuleProps : Object, IAddRuleProps
Syntax (vb)
Public Class AddRuleProps
Inherits Object
Implements IAddRuleProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ElasticLoadBalancingV2;
ListenerCondition listenerCondition;
var addRuleProps = new AddRuleProps {
Conditions = new [] { listenerCondition },
Priority = 123
};
Synopsis
Constructors
AddRuleProps() |
Properties
Conditions | Rule applies if matches the conditions. |
Priority | Priority of this target group. |
Constructors
AddRuleProps()
public AddRuleProps()
Properties
Conditions
Rule applies if matches the conditions.
public ListenerCondition[] Conditions { get; set; }
Property Value
Remarks
Default: - No conditions.
See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
Priority
Priority of this target group.
public Nullable<double> Priority { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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