Interface IAddRuleProps
Properties for adding a conditional load balancing rule.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IAddRuleProps
Syntax (vb)
Public Interface 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 },
HostHeader = "hostHeader",
PathPattern = "pathPattern",
PathPatterns = new [] { "pathPatterns" },
Priority = 123
};
Synopsis
Properties
Conditions | Rule applies if matches the conditions. |
HostHeader | (deprecated) Rule applies if the requested host matches the indicated host. |
PathPattern | (deprecated) Rule applies if the requested path matches the given path pattern. |
PathPatterns | (deprecated) Rule applies if the requested path matches any of the given patterns. |
Priority | Priority of this target group. |
Properties
Conditions
Rule applies if matches the conditions.
virtual ListenerCondition[] Conditions { get; }
Property Value
Remarks
Default: - No conditions.
See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html
HostHeader
(deprecated) Rule applies if the requested host matches the indicated host.
virtual string HostHeader { get; }
Property Value
System.String
Remarks
May contain up to three '*' wildcards.
Requires that priority is set.
Default: No host condition
Stability: Deprecated
PathPattern
(deprecated) Rule applies if the requested path matches the given path pattern.
virtual string PathPattern { get; }
Property Value
System.String
Remarks
May contain up to three '*' wildcards.
Requires that priority is set.
Default: No path condition
Stability: Deprecated
PathPatterns
(deprecated) Rule applies if the requested path matches any of the given patterns.
virtual string[] PathPatterns { get; }
Property Value
System.String[]
Remarks
May contain up to three '*' wildcards.
Requires that priority is set.
Default: - No path condition.
Stability: Deprecated
Priority
Priority of this target group.
virtual Nullable<double> Priority { get; }
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