public static final class LoadBalancerListener.Builder extends Object
LoadBalancerListener| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerListener |
build()
Builds the configured instance.
|
LoadBalancerListener.Builder |
withAllowConnectionsFrom(List<software.amazon.awscdk.services.ec2.IConnectable> value)
Sets the value of AllowConnectionsFrom
|
LoadBalancerListener.Builder |
withExternalPort(Number value)
Sets the value of ExternalPort
|
LoadBalancerListener.Builder |
withExternalProtocol(LoadBalancingProtocol value)
Sets the value of ExternalProtocol
|
LoadBalancerListener.Builder |
withInternalPort(Number value)
Sets the value of InternalPort
|
LoadBalancerListener.Builder |
withInternalProtocol(LoadBalancingProtocol value)
Sets the value of InternalProtocol
|
LoadBalancerListener.Builder |
withPolicyNames(List<String> value)
Sets the value of PolicyNames
|
LoadBalancerListener.Builder |
withSslCertificateId(String value)
Sets the value of SslCertificateId
|
public LoadBalancerListener.Builder withExternalPort(Number value)
value - External listening portthispublic LoadBalancerListener.Builder withAllowConnectionsFrom(@Nullable List<software.amazon.awscdk.services.ec2.IConnectable> value)
value - Allow connections to the load balancer from the given set of connection peers
By default, connections will be allowed from anywhere. Set this to an empty list
to deny connections, or supply a custom list of peers to allow connections from
(IP ranges or security groups).thispublic LoadBalancerListener.Builder withExternalProtocol(@Nullable LoadBalancingProtocol value)
value - What public protocol to use for load balancing
Either 'tcp', 'ssl', 'http' or 'https'.
May be omitted if the external port is either 80 or 443.thispublic LoadBalancerListener.Builder withInternalPort(@Nullable Number value)
value - Instance listening port
Same as the externalPort if not specified.thispublic LoadBalancerListener.Builder withInternalProtocol(@Nullable LoadBalancingProtocol value)
value - What public protocol to use for load balancing
Either 'tcp', 'ssl', 'http' or 'https'.
May be omitted if the internal port is either 80 or 443.
The instance protocol is 'tcp' if the front-end protocol
is 'tcp' or 'ssl', the instance protocol is 'http' if the
front-end protocol is 'https'.thispublic LoadBalancerListener.Builder withPolicyNames(@Nullable List<String> value)
value - SSL policy namesthispublic LoadBalancerListener.Builder withSslCertificateId(@Nullable String value)
value - ID of SSL certificatethispublic LoadBalancerListener build()
LoadBalancerListenerNullPointerException - if any required attribute was not providedCopyright © 2018. All rights reserved.