Interface IBaseApplicationListenerRuleProps
Basic properties for defining a rule on a listener.
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public interface IBaseApplicationListenerRuleProps
Syntax (vb)
Public Interface IBaseApplicationListenerRuleProps
Synopsis
Properties
Action | Action to perform when requests are received. |
Conditions | Rule applies if matches the conditions. |
FixedResponse | (deprecated) Fixed response to return. |
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 the rule. |
RedirectResponse | (deprecated) Redirect response to return. |
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
FixedResponse
(deprecated) Fixed response to return.
virtual IFixedResponse FixedResponse { get; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No fixed response.
Stability: Deprecated
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.
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
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
Paths may contain up to three '*' wildcards.
Default: - No path conditions.
Stability: Deprecated
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.
RedirectResponse
(deprecated) Redirect response to return.
virtual IRedirectResponse RedirectResponse { get; }
Property Value
Remarks
Only one of action
, fixedResponse
, redirectResponse
or targetGroups
can be specified.
Default: - No redirect response.
Stability: Deprecated
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.