enum ApplicationProtocolVersion
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ElasticLoadBalancingV2.ApplicationProtocolVersion |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#ApplicationProtocolVersion |
Java | software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationProtocolVersion |
Python | aws_cdk.aws_elasticloadbalancingv2.ApplicationProtocolVersion |
TypeScript (source) | aws-cdk-lib » aws_elasticloadbalancingv2 » ApplicationProtocolVersion |
Load balancing protocol version for application load balancers.
Example
declare const vpc: ec2.Vpc;
const tg = new elbv2.ApplicationTargetGroup(this, 'TG', {
targetType: elbv2.TargetType.IP,
port: 50051,
protocol: elbv2.ApplicationProtocol.HTTP,
protocolVersion: elbv2.ApplicationProtocolVersion.GRPC,
healthCheck: {
enabled: true,
healthyGrpcCodes: '0-99',
},
vpc,
});
Members
Name | Description |
---|---|
GRPC | GRPC. |
HTTP1 | HTTP1. |
HTTP2 | HTTP2. |
GRPC
GRPC.
HTTP1
HTTP1.
HTTP2
HTTP2.