Interface ApplicationListenerAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationListenerAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:44.168Z")
@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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApplicationListenerAttributesstatic final classAn implementation forApplicationListenerAttributes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe default port on which this listener is listening.ARN of the listener.default ISecurityGroupSecurity group of the load balancer this listener is associated with.default BooleanDeprecated.default StringDeprecated.usesecurityGroupinsteadMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getListenerArn
ARN of the listener. -
getDefaultPort
The default port on which this listener is listening. -
getSecurityGroup
Security group of the load balancer this listener is associated with. -
getSecurityGroupAllowsAllOutbound
Deprecated.usesecurityGroupinstead(deprecated) Whether the imported security group allows all outbound traffic or not when imported usingsecurityGroupId.Unless set to
false, no egress rules will be added to the security group.Default: true
-
getSecurityGroupId
Deprecated.usesecurityGroupinstead(deprecated) Security group ID of the load balancer this listener is associated with. -
builder
-
securityGroupinstead