# TargetType

How to interpret the load balancing target identifiers.

- Source: [`aws-elasticloadbalancingv2/lib/shared/enums.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/enums.ts#L361)

## 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

| Member | Description |
| --- | --- |
| `INSTANCE` | Targets identified by instance ID. |
| `IP` | Targets identified by IP address. |
| `LAMBDA` | Target is a single Lambda Function. |
| `ALB` | Target is a single Application Load Balancer. |

## Referenced by

- [`BaseTargetGroupProps`](/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.BaseTargetGroupProps).targetType
- [`LoadBalancerTargetProps`](/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.LoadBalancerTargetProps).targetType
- [`TargetGroupBase`](/v2/docs/aws-cdk-lib.aws_elasticloadbalancingv2.TargetGroupBase).targetType
