ApplicationProtocolVersion

class aws_cdk.aws_elasticloadbalancingv2.ApplicationProtocolVersion(value)

Bases: enum.Enum

Load balancing protocol version for application load balancers.

Example:

# vpc is of type Vpc


tg = elbv2.ApplicationTargetGroup(self, "TG",
    target_type=elbv2.TargetType.IP,
    port=50051,
    protocol=elbv2.ApplicationProtocol.HTTP,
    protocol_version=elbv2.ApplicationProtocolVersion.GRPC,
    health_check=elbv2.HealthCheck(
        enabled=True,
        healthy_grpc_codes="0-99"
    ),
    vpc=vpc
)

Attributes

GRPC

GRPC.

HTTP1

HTTP1.

HTTP2

HTTP2.