Interface ApplicationListenerProps
- All Superinterfaces:
BaseApplicationListenerProps,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ApplicationListenerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:09.907Z")
@Stability(Stable)
public interface ApplicationListenerProps
extends software.amazon.jsii.JsiiSerializable, BaseApplicationListenerProps
Properties for defining a standalone ApplicationListener.
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.*;
ApplicationLoadBalancer applicationLoadBalancer;
ApplicationTargetGroup applicationTargetGroup;
ListenerAction listenerAction;
ListenerCertificate listenerCertificate;
TrustStore trustStore;
ApplicationListenerProps applicationListenerProps = ApplicationListenerProps.builder()
.loadBalancer(applicationLoadBalancer)
// the properties below are optional
.certificates(List.of(listenerCertificate))
.defaultAction(listenerAction)
.defaultTargetGroups(List.of(applicationTargetGroup))
.mutualAuthentication(MutualAuthentication.builder()
.ignoreClientCertificateExpiry(false)
.mutualAuthenticationMode(MutualAuthenticationMode.OFF)
.trustStore(trustStore)
.build())
.open(false)
.port(123)
.protocol(ApplicationProtocol.HTTP)
.sslPolicy(SslPolicy.RECOMMENDED_TLS)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forApplicationListenerPropsstatic final classAn implementation forApplicationListenerProps -
Method Summary
Methods inherited from interface software.amazon.awscdk.services.elasticloadbalancingv2.BaseApplicationListenerProps
getCertificates, getDefaultAction, getDefaultTargetGroups, getMutualAuthentication, getOpen, getPort, getProtocol, getSslPolicyMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLoadBalancer
The load balancer to attach this listener to. -
builder
- Returns:
- a
ApplicationListenerProps.BuilderofApplicationListenerProps
-