@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:48.565Z") @Stability(value=Experimental) public enum Protocol extends Enum<Protocol>
Example:
INetworkListener listener = NetworkListener.fromLookup(this, "ALBListener", NetworkListenerLookupOptions.builder()
.loadBalancerTags(Map.of(
"Cluster", "MyClusterName"))
.listenerProtocol(Protocol.TCP)
.listenerPort(12345)
.build());
| Enum Constant and Description |
|---|
HTTP
(experimental) HTTP (ALB health checks and NLB health checks).
|
HTTPS
(experimental) HTTPS (ALB health checks and NLB health checks).
|
TCP
(experimental) TCP (NLB, NLB health checks).
|
TCP_UDP
(experimental) Listen to both TCP and UDP on the same port (NLB).
|
TLS
(experimental) TLS (NLB).
|
UDP
(experimental) UDP (NLB).
|
| Modifier and Type | Method and Description |
|---|---|
static Protocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Protocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@Stability(value=Experimental) public static final Protocol HTTP
@Stability(value=Experimental) public static final Protocol HTTPS
@Stability(value=Experimental) public static final Protocol TCP
@Stability(value=Experimental) public static final Protocol TLS
@Stability(value=Experimental) public static final Protocol UDP
@Stability(value=Experimental) public static final Protocol TCP_UDP
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2022. All rights reserved.