@Stability(value=Stable)
public static interface CfnLoadBalancer.ListenersProperty
extends software.amazon.jsii.JsiiSerializable
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() |
String |
getInstancePort()
The port on which the instance is listening.
|
default String |
getInstanceProtocol()
The protocol to use for routing traffic to instances: HTTP, HTTPS, TCP, or SSL.
|
String |
getLoadBalancerPort()
The port on which the load balancer is listening.
|
default List<String> |
getPolicyNames()
The names of the policies to associate with the listener.
|
String |
getProtocol()
The load balancer transport protocol to use for routing: HTTP, HTTPS, TCP, or SSL.
|
default String |
getSslCertificateId()
The Amazon Resource Name (ARN) of the server certificate.
|
@Stability(value=Stable) @NotNull String getInstancePort()
@Stability(value=Stable) @NotNull 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.
@Stability(value=Stable) @NotNull String getProtocol()
@Stability(value=Stable) @Nullable default 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.
@Stability(value=Stable) @Nullable default List<String> getPolicyNames()
@Stability(value=Stable) @Nullable default String getSslCertificateId()
@Stability(value=Stable) static CfnLoadBalancer.ListenersProperty.Builder builder()
Copyright © 2022. All rights reserved.