@Stability(value=Stable) public static final class NetworkListener.Builder extends Object implements software.amazon.jsii.Builder<NetworkListener>
NetworkListener.| Modifier and Type | Method and Description |
|---|---|
NetworkListener.Builder |
alpnPolicy(AlpnPolicy alpnPolicy)
Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages.
|
NetworkListener |
build() |
NetworkListener.Builder |
certificates(List<? extends IListenerCertificate> certificates)
Certificate list of ACM cert ARNs.
|
static NetworkListener.Builder |
create(software.constructs.Construct scope,
String id) |
NetworkListener.Builder |
defaultAction(NetworkListenerAction defaultAction)
Default action to take for requests to this listener.
|
NetworkListener.Builder |
defaultTargetGroups(List<? extends INetworkTargetGroup> defaultTargetGroups)
Default target groups to load balance to.
|
NetworkListener.Builder |
loadBalancer(INetworkLoadBalancer loadBalancer)
The load balancer to attach this listener to.
|
NetworkListener.Builder |
port(Number port)
The port on which the listener listens for requests.
|
NetworkListener.Builder |
protocol(Protocol protocol)
Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.
|
NetworkListener.Builder |
sslPolicy(SslPolicy sslPolicy)
SSL Policy.
|
@Stability(value=Stable) public static NetworkListener.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.NetworkListener.Builder.@Stability(value=Stable) public NetworkListener.Builder port(Number port)
port - The port on which the listener listens for requests. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder alpnPolicy(AlpnPolicy alpnPolicy)
ALPN enables the application layer to negotiate which protocols should be used over a secure connection, such as HTTP/1 and HTTP/2.
Can only be specified together with Protocol TLS.
Default: - None
alpnPolicy - Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder certificates(List<? extends IListenerCertificate> certificates)
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.
Default: - No certificates.
certificates - Certificate list of ACM cert ARNs. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder defaultAction(NetworkListenerAction defaultAction)
This allows full control of the default Action of the load balancer,
including weighted forwarding. See the NetworkListenerAction class for
all options.
Cannot be specified together with defaultTargetGroups.
Default: - None.
defaultAction - Default action to take for requests to this listener. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder defaultTargetGroups(List<? extends INetworkTargetGroup> defaultTargetGroups)
All target groups will be load balanced to with equal weight and without
stickiness. For a more complex configuration than that, use
either defaultAction or addAction().
Cannot be specified together with defaultAction.
Default: - None.
defaultTargetGroups - Default target groups to load balance to. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder protocol(Protocol protocol)
Default: - TLS if certificates are provided. TCP otherwise.
protocol - Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder sslPolicy(SslPolicy sslPolicy)
Default: - Current predefined security policy.
sslPolicy - SSL Policy. This parameter is required.this@Stability(value=Stable) public NetworkListener.Builder loadBalancer(INetworkLoadBalancer loadBalancer)
loadBalancer - The load balancer to attach this listener to. This parameter is required.this@Stability(value=Stable) public NetworkListener build()
build in interface software.amazon.jsii.Builder<NetworkListener>Copyright © 2022. All rights reserved.