@Generated(value="jsii-pacmak/1.73.0 (build 6faeda3)", date="2023-01-25T18:29:07.968Z") public enum Protocol extends java.lang.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
HTTP (ALB health checks and NLB health checks).
|
HTTPS
HTTPS (ALB health checks and NLB health checks).
|
TCP
TCP (NLB, NLB health checks).
|
TCP_UDP
Listen to both TCP and UDP on the same port (NLB).
|
TLS
TLS (NLB).
|
UDP
UDP (NLB).
|
Modifier and Type | Method and Description |
---|---|
static Protocol |
valueOf(java.lang.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.
|
public static final Protocol HTTP
public static final Protocol HTTPS
public static final Protocol TCP
public static final Protocol TLS
public static final Protocol UDP
public static final Protocol TCP_UDP
public static Protocol[] values()
for (Protocol c : Protocol.values()) System.out.println(c);
public static Protocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null