public static final class BaseApplicationListenerProps.Builder
extends java.lang.Object
BaseApplicationListenerProps
Constructor and Description |
---|
Builder() |
@Deprecated public BaseApplicationListenerProps.Builder certificateArns(java.util.List<java.lang.String> certificateArns)
BaseApplicationListenerProps.getCertificateArns()
certificateArns
- The certificates to use on this listener.this
public BaseApplicationListenerProps.Builder certificates(java.util.List<? extends IListenerCertificate> certificates)
BaseApplicationListenerProps.getCertificates()
certificates
- Certificate list of ACM cert ARNs.
You must provide exactly one certificate if the listener protocol is HTTPS or TLS.this
public BaseApplicationListenerProps.Builder defaultAction(ListenerAction defaultAction)
BaseApplicationListenerProps.getDefaultAction()
defaultAction
- Default action to take for requests to this listener.
This allows full control of the default action of the load balancer,
including Action chaining, fixed responses and redirect responses.
See the ListenerAction
class for all options.
Cannot be specified together with defaultTargetGroups
.
this
public BaseApplicationListenerProps.Builder defaultTargetGroups(java.util.List<? extends IApplicationTargetGroup> defaultTargetGroups)
BaseApplicationListenerProps.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
public BaseApplicationListenerProps.Builder open(java.lang.Boolean open)
BaseApplicationListenerProps.getOpen()
open
- Allow anyone to connect to the load balancer on the listener port.
If this is specified, the load balancer will be opened up to anyone who can reach it.
For internal load balancers this is anyone in the same VPC. For public load
balancers, this is anyone on the internet.
If you want to be more selective about who can access this load
balancer, set this to false
and use the listener's connections
object to selectively grant access to the load balancer on the listener port.
this
public BaseApplicationListenerProps.Builder port(java.lang.Number port)
BaseApplicationListenerProps.getPort()
port
- The port on which the listener listens for requests.this
public BaseApplicationListenerProps.Builder protocol(ApplicationProtocol protocol)
BaseApplicationListenerProps.getProtocol()
protocol
- The protocol to use.this
public BaseApplicationListenerProps.Builder sslPolicy(SslPolicy sslPolicy)
BaseApplicationListenerProps.getSslPolicy()
sslPolicy
- The security policy that defines which ciphers and protocols are supported.this
public BaseApplicationListenerProps build()
BaseApplicationListenerProps
java.lang.NullPointerException
- if any required attribute was not provided