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.97.0 (build 729de35)", date="2024-04-18T17:54:16.964Z") @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 Classes
    Modifier and Type
    Class
    Description
    static final class 
    A fluent builder for ApplicationListenerRule.

    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

    Constructors
    Modifier
    Constructor
    Description
    protected
    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 Type
    Method
    Description
    void
    Add a non-standard condition to this rule.
    void
    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

      @Stability(Stable) public void addCondition(@NotNull ListenerCondition condition)
      Add a non-standard condition to this rule.

      Parameters:
      condition - This parameter is required.
    • configureAction

      @Stability(Stable) public void configureAction(@NotNull ListenerAction action)
      Configure the action to perform for this rule.

      Parameters:
      action - This parameter is required.
    • getListenerRuleArn

      @Stability(Stable) @NotNull public String getListenerRuleArn()
      The ARN of this rule.