Interface ApplicationListenerAttributes

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ApplicationListenerAttributes.Jsii$Proxy

@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-31T18:44:15.754Z") @Stability(Stable) public interface ApplicationListenerAttributes extends software.amazon.jsii.JsiiSerializable
Properties to reference an existing listener.

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.ec2.*;
 import software.amazon.awscdk.services.elasticloadbalancingv2.*;
 SecurityGroup securityGroup;
 ApplicationListenerAttributes applicationListenerAttributes = ApplicationListenerAttributes.builder()
         .listenerArn("listenerArn")
         // the properties below are optional
         .defaultPort(123)
         .securityGroup(securityGroup)
         .securityGroupAllowsAllOutbound(false)
         .securityGroupId("securityGroupId")
         .build();
 
  • Method Details

    • getListenerArn

      @Stability(Stable) @NotNull String getListenerArn()
      ARN of the listener.
    • getDefaultPort

      @Stability(Stable) @Nullable default Number getDefaultPort()
      The default port on which this listener is listening.
    • getSecurityGroup

      @Stability(Stable) @Nullable default ISecurityGroup getSecurityGroup()
      Security group of the load balancer this listener is associated with.
    • getSecurityGroupAllowsAllOutbound

      @Stability(Deprecated) @Deprecated @Nullable default Boolean getSecurityGroupAllowsAllOutbound()
      Deprecated.
      use `securityGroup` instead
      (deprecated) Whether the imported security group allows all outbound traffic or not when imported using `securityGroupId`.

      Unless set to false, no egress rules will be added to the security group.

      Default: true

    • getSecurityGroupId

      @Stability(Deprecated) @Deprecated @Nullable default String getSecurityGroupId()
      Deprecated.
      use `securityGroup` instead
      (deprecated) Security group ID of the load balancer this listener is associated with.

    • builder

      @Stability(Stable) static ApplicationListenerAttributes.Builder builder()
      Returns:
      a ApplicationListenerAttributes.Builder of ApplicationListenerAttributes