Protocol

class aws_cdk.aws_elasticloadbalancingv2.Protocol(value)

Bases: Enum

Backend protocol for network load balancers and health checks.

ExampleMetadata:

infused

Example:

listener = elbv2.NetworkListener.from_lookup(self, "ALBListener",
    load_balancer_tags={
        "Cluster": "MyClusterName"
    },
    listener_protocol=elbv2.Protocol.TCP,
    listener_port=12345
)

Attributes

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).