Class Protocol
Backend protocol for network load balancers and health checks.
Inheritance
System.Object
Protocol
Namespace: Amazon.CDK.AWS.ElasticLoadBalancingV2
Assembly: Amazon.CDK.AWS.ElasticLoadBalancingV2.dll
Syntax (csharp)
public sealed class Protocol : Enum
Syntax (vb)
Public NotInheritable Class Protocol
Inherits
Enum
Remarks
ExampleMetadata: infused
Examples
var listener = NetworkListener.FromLookup(this, "ALBListener", new NetworkListenerLookupOptions {
LoadBalancerTags = new Dictionary<string, string> {
{ "Cluster", "MyClusterName" }
},
ListenerProtocol = Protocol.TCP,
ListenerPort = 12345
});
Synopsis
Fields
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). |
value__ |
Fields
HTTP
HTTP (ALB health checks and NLB health checks).
public const Protocol HTTP
Field Value
Type | Description |
---|---|
Protocol |
HTTPS
HTTPS (ALB health checks and NLB health checks).
public const Protocol HTTPS
Field Value
Type | Description |
---|---|
Protocol |
TCP
TCP_UDP
Listen to both TCP and UDP on the same port (NLB).
public const Protocol TCP_UDP
Field Value
Type | Description |
---|---|
Protocol |
TLS
UDP
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |