@Stability(value=Stable) public static final class BaseNetworkListenerProps.Builder extends Object implements software.amazon.jsii.Builder<BaseNetworkListenerProps>
BaseNetworkListenerProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public BaseNetworkListenerProps.Builder port(Number port)
BaseNetworkListenerProps.getPort()port - The port on which the listener listens for requests. This parameter is required.this@Stability(value=Stable) public BaseNetworkListenerProps.Builder alpnPolicy(AlpnPolicy alpnPolicy)
BaseNetworkListenerProps.getAlpnPolicy()alpnPolicy - Application-Layer Protocol Negotiation (ALPN) is a TLS extension that is sent on the initial TLS handshake hello messages.
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.
this@Stability(value=Stable) public BaseNetworkListenerProps.Builder certificates(List<? extends IListenerCertificate> certificates)
BaseNetworkListenerProps.getCertificates()certificates - Certificate list of ACM cert ARNs.
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.this@Stability(value=Stable) public BaseNetworkListenerProps.Builder defaultAction(NetworkListenerAction defaultAction)
BaseNetworkListenerProps.getDefaultAction()defaultAction - Default action to take for requests to this listener.
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.
this@Stability(value=Stable) public BaseNetworkListenerProps.Builder defaultTargetGroups(List<? extends INetworkTargetGroup> defaultTargetGroups)
BaseNetworkListenerProps.getDefaultTargetGroups()defaultTargetGroups - Default target groups to load balance to.
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.
this@Stability(value=Stable) public BaseNetworkListenerProps.Builder protocol(Protocol protocol)
BaseNetworkListenerProps.getProtocol()protocol - Protocol for listener, expects TCP, TLS, UDP, or TCP_UDP.this@Stability(value=Stable) public BaseNetworkListenerProps.Builder sslPolicy(SslPolicy sslPolicy)
BaseNetworkListenerProps.getSslPolicy()sslPolicy - SSL Policy.this@Stability(value=Stable) public BaseNetworkListenerProps build()
build in interface software.amazon.jsii.Builder<BaseNetworkListenerProps>BaseNetworkListenerPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.