Interface IBaseApplicationListenerRuleProps
Basic properties for defining a rule on a listener.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IBaseApplicationListenerRuleProps
Syntax (vb)
Public Interface 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
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. |
Properties
Action
Action to perform when requests are received.
virtual ListenerAction Action { get; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No action
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
Priority
Priority of the rule.
double Priority { get; }
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.
virtual IApplicationTargetGroup[] TargetGroups { get; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Implies a forward
action.
Default: - No target groups.