Skip to content
v2.274.0

TargetType Enum ​

How to interpret the load balancing target identifiers.

Example ​

ts
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 ​

MemberDescription
INSTANCETargets identified by instance ID.
IPTargets identified by IP address.
LAMBDATarget is a single Lambda Function.
ALBTarget is a single Application Load Balancer.

Referenced by ​