public static interface CfnLoadBalancer.ListenersProperty
Modifying any property replaces the listener.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.elasticloadbalancing.*; ListenersProperty listenersProperty = ListenersProperty.builder() .instancePort("instancePort") .loadBalancerPort("loadBalancerPort") .protocol("protocol") // the properties below are optional .instanceProtocol("instanceProtocol") .policyNames(List.of("policyNames")) .sslCertificateId("sslCertificateId") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnLoadBalancer.ListenersProperty.Builder
A builder for
CfnLoadBalancer.ListenersProperty |
static class |
CfnLoadBalancer.ListenersProperty.Jsii$Proxy
An implementation for
CfnLoadBalancer.ListenersProperty |
Modifier and Type | Method and Description |
---|---|
static CfnLoadBalancer.ListenersProperty.Builder |
builder() |
java.lang.String |
getInstancePort()
The port on which the instance is listening.
|
default java.lang.String |
getInstanceProtocol()
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
|
java.lang.String |
getLoadBalancerPort()
The port on which the load balancer is listening.
|
default java.util.List<java.lang.String> |
getPolicyNames()
The names of the policies to associate with the listener.
|
java.lang.String |
getProtocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
|
default java.lang.String |
getSslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
|
java.lang.String getInstancePort()
java.lang.String getLoadBalancerPort()
On EC2-VPC, you can specify any port from the range 1-65535. On EC2-Classic, you can specify any port from the following list: 25, 80, 443, 465, 587, 1024-65535.
java.lang.String getProtocol()
default java.lang.String getInstanceProtocol()
If the front-end protocol is TCP or SSL, the back-end protocol must be TCP or SSL. If the front-end protocol is HTTP or HTTPS, the back-end protocol must be HTTP or HTTPS.
If there is another listener with the same InstancePort
whose InstanceProtocol
is secure, (HTTPS or SSL), the listener's InstanceProtocol
must also be secure.
If there is another listener with the same InstancePort
whose InstanceProtocol
is HTTP or TCP, the listener's InstanceProtocol
must be HTTP or TCP.
default java.util.List<java.lang.String> getPolicyNames()
default java.lang.String getSslCertificateId()
static CfnLoadBalancer.ListenersProperty.Builder builder()