@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.044Z") @Stability(value=Stable) public interface LoadBalancerListener extends software.amazon.jsii.JsiiSerializable
Example:
IVpc vpc;
AutoScalingGroup myAutoScalingGroup;
LoadBalancer lb = LoadBalancer.Builder.create(this, "LB")
.vpc(vpc)
.internetFacing(true)
.healthCheck(HealthCheck.builder()
.port(80)
.build())
.build();
lb.addTarget(myAutoScalingGroup);
lb.addListener(LoadBalancerListener.builder()
.externalPort(80)
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
LoadBalancerListener.Builder
A builder for
LoadBalancerListener |
static class |
LoadBalancerListener.Jsii$Proxy
An implementation for
LoadBalancerListener |
| Modifier and Type | Method and Description |
|---|---|
static LoadBalancerListener.Builder |
builder() |
default List<IConnectable> |
getAllowConnectionsFrom()
Allow connections to the load balancer from the given set of connection peers.
|
Number |
getExternalPort()
External listening port.
|
default LoadBalancingProtocol |
getExternalProtocol()
What public protocol to use for load balancing.
|
default Number |
getInternalPort()
Instance listening port.
|
default LoadBalancingProtocol |
getInternalProtocol()
What public protocol to use for load balancing.
|
default List<String> |
getPolicyNames()
SSL policy names.
|
default String |
getSslCertificateArn()
the ARN of the SSL certificate.
|
@Stability(value=Stable) @NotNull Number getExternalPort()
@Stability(value=Stable) @Nullable default List<IConnectable> getAllowConnectionsFrom()
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).
Default: Anywhere
@Stability(value=Stable) @Nullable default LoadBalancingProtocol getExternalProtocol()
Either 'tcp', 'ssl', 'http' or 'https'.
May be omitted if the external port is either 80 or 443.
@Stability(value=Stable) @Nullable default Number getInternalPort()
Same as the externalPort if not specified.
Default: externalPort
@Stability(value=Stable) @Nullable default LoadBalancingProtocol getInternalProtocol()
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'.
@Stability(value=Stable) @Nullable default List<String> getPolicyNames()
@Stability(value=Stable) @Nullable default String getSslCertificateArn()
Default: - none
@Stability(value=Stable) static LoadBalancerListener.Builder builder()
LoadBalancerListener.Builder of LoadBalancerListenerCopyright © 2022. All rights reserved.