Class BaseApplicationListenerRuleProps
Basic properties for defining a rule on a listener.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BaseApplicationListenerRuleProps : Object, IBaseApplicationListenerRuleProps
Syntax (vb)
Public Class BaseApplicationListenerRuleProps
Inherits Object
Implements IBaseApplicationListenerRuleProps
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;
ApplicationTargetGroup applicationTargetGroup;
ListenerAction listenerAction;
ListenerCondition listenerCondition;
var baseApplicationListenerRuleProps = new BaseApplicationListenerRuleProps {
Priority = 123,
// the properties below are optional
Action = listenerAction,
Conditions = new [] { listenerCondition },
TargetGroups = new [] { applicationTargetGroup }
};
Synopsis
Constructors
BaseApplicationListenerRuleProps() |
Properties
Action | Action to perform when requests are received. |
Conditions | Rule applies if matches the conditions. |
Priority | Priority of the rule. |
TargetGroups | Target groups to forward requests to. |
Constructors
BaseApplicationListenerRuleProps()
public BaseApplicationListenerRuleProps()
Properties
Action
Action to perform when requests are received.
public ListenerAction Action { get; set; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No action
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 the rule.
public double Priority { get; set; }
Property Value
System.Double
Remarks
The rule with the lowest priority will be used for every request.
Priorities must be unique.
TargetGroups
Target groups to forward requests to.
public IApplicationTargetGroup[] TargetGroups { get; set; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Implies a forward
action.
Default: - No target groups.