Class ApplicationListenerRule
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationListenerRule
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-05T22:42:04.045Z")
@Stability(Stable)
public class ApplicationListenerRule
extends software.constructs.Construct
Define a new listener rule.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancingv2.*; ApplicationListener applicationListener; ApplicationTargetGroup applicationTargetGroup; ListenerAction listenerAction; ListenerCondition listenerCondition; ApplicationListenerRule applicationListenerRule = ApplicationListenerRule.Builder.create(this, "MyApplicationListenerRule") .listener(applicationListener) .priority(123) // the properties below are optional .action(listenerAction) .conditions(List.of(listenerCondition)) .targetGroups(List.of(applicationTargetGroup)) .build();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A fluent builder forApplicationListenerRule
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ApplicationListenerRule
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
ApplicationListenerRule
(software.amazon.jsii.JsiiObjectRef objRef) ApplicationListenerRule
(software.constructs.Construct scope, String id, ApplicationListenerRuleProps props) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCondition
(ListenerCondition condition) Add a non-standard condition to this rule.void
configureAction
(ListenerAction action) Configure the action to perform for this rule.The ARN of this rule.Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ApplicationListenerRule
protected ApplicationListenerRule(software.amazon.jsii.JsiiObjectRef objRef) -
ApplicationListenerRule
protected ApplicationListenerRule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ApplicationListenerRule
@Stability(Stable) public ApplicationListenerRule(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ApplicationListenerRuleProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
addCondition
Add a non-standard condition to this rule.- Parameters:
condition
- This parameter is required.
-
configureAction
Configure the action to perform for this rule.- Parameters:
action
- This parameter is required.
-
getListenerRuleArn
The ARN of this rule.
-