Show / Hide Table of Contents

Class BaseApplicationListenerRuleProps

Basic properties for defining a rule on a listener.

Inheritance
System.Object
BaseApplicationListenerRuleProps
Implements
IBaseApplicationListenerRuleProps
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public class BaseApplicationListenerRuleProps : Object, IBaseApplicationListenerRuleProps
Syntax (vb)
Public Class BaseApplicationListenerRuleProps
    Inherits Object
    Implements IBaseApplicationListenerRuleProps

Synopsis

Constructors

BaseApplicationListenerRuleProps()

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.

Constructors

BaseApplicationListenerRuleProps()

public BaseApplicationListenerRuleProps()

Properties

Action

Action to perform when requests are received.

public ListenerAction Action { get; set; }
Property Value

ListenerAction

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

ListenerCondition[]

Remarks

Default: - No conditions.

See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html

FixedResponse

(deprecated) Fixed response to return.

public IFixedResponse FixedResponse { get; set; }
Property Value

IFixedResponse

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.

public string HostHeader { get; set; }
Property Value

System.String

Remarks

May contain up to three '*' wildcards.

Default: - No host condition.

Stability: Deprecated

See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#host-conditions

PathPattern

(deprecated) Rule applies if the requested path matches the given path pattern.

public string PathPattern { get; set; }
Property Value

System.String

Remarks

Default: - No path condition.

Stability: Deprecated

See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions

PathPatterns

(deprecated) Rule applies if the requested path matches any of the given patterns.

public string[] PathPatterns { get; set; }
Property Value

System.String[]

Remarks

Paths may contain up to three '*' wildcards.

Default: - No path conditions.

Stability: Deprecated

See: https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-listeners.html#path-conditions

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.

RedirectResponse

(deprecated) Redirect response to return.

public IRedirectResponse RedirectResponse { get; set; }
Property Value

IRedirectResponse

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.

public IApplicationTargetGroup[] TargetGroups { get; set; }
Property Value

IApplicationTargetGroup[]

Remarks

Only one of action, fixedResponse, redirectResponse or targetGroups can be specified.

Implies a forward action.

Default: - No target groups.

Implements

IBaseApplicationListenerRuleProps
Back to top Generated by DocFX