Class ApplicationListenerRule
Define a new listener rule.
Inheritance
System.Object
ApplicationListenerRule
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class ApplicationListenerRule : Construct
Syntax (vb)
Public Class ApplicationListenerRule
Inherits Construct
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;
ApplicationListener applicationListener;
ApplicationTargetGroup applicationTargetGroup;
ListenerAction listenerAction;
ListenerCondition listenerCondition;
var applicationListenerRule = new ApplicationListenerRule(this, "MyApplicationListenerRule", new ApplicationListenerRuleProps {
Listener = applicationListener,
Priority = 123,
// the properties below are optional
Action = listenerAction,
Conditions = new [] { listenerCondition },
TargetGroups = new [] { applicationTargetGroup }
});
Synopsis
Constructors
ApplicationListenerRule(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
ApplicationListenerRule(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
ApplicationListenerRule(Construct, String, IApplicationListenerRuleProps) |
Properties
ListenerRuleArn | The ARN of this rule. |
Methods
AddCondition(ListenerCondition) | Add a non-standard condition to this rule. |
ConfigureAction(ListenerAction) | Configure the action to perform for this rule. |
Constructors
ApplicationListenerRule(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected ApplicationListenerRule(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
ApplicationListenerRule(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected ApplicationListenerRule(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
ApplicationListenerRule(Construct, String, IApplicationListenerRuleProps)
public ApplicationListenerRule(Construct scope, string id, IApplicationListenerRuleProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IApplicationListenerRuleProps
Properties
ListenerRuleArn
The ARN of this rule.
public virtual string ListenerRuleArn { get; }
Property Value
System.String
Methods
AddCondition(ListenerCondition)
Add a non-standard condition to this rule.
public virtual void AddCondition(ListenerCondition condition)
Parameters
- condition ListenerCondition
ConfigureAction(ListenerAction)
Configure the action to perform for this rule.
public virtual void ConfigureAction(ListenerAction action)
Parameters
- action ListenerAction