# TargetGroupHealth

Properties for configuring a target group health.

- Source: [`aws-elasticloadbalancingv2/lib/shared/base-target-group.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-elasticloadbalancingv2/lib/shared/base-target-group.ts#L112)
- Type last changed: v2.216.0 · 22 Sep 2025

## Example

```ts
declare const vpc: ec2.Vpc;

const targetGroup = new elbv2.ApplicationTargetGroup(this, 'TargetGroup', {
  vpc,
  port: 80,
  targetGroupHealth: {
    dnsMinimumHealthyTargetCount: 3,
    dnsMinimumHealthyTargetPercentage: 70,
    routingMinimumHealthyTargetCount: 2,
    routingMinimumHealthyTargetPercentage: 50,
  },
});
```

## Properties

- `dnsMinimumHealthyTargetCount`: number = 1 — The minimum number of targets that must be healthy for DNS failover.

  If below this value, mark the zone as unhealthy in DNS.
  Use 0 for "off".

- `dnsMinimumHealthyTargetPercentage`: number = 0 — The minimum percentage of targets that must be healthy for DNS failover.

  If below this value, mark the zone as unhealthy in DNS.
  Use 0 for "off".

- `routingMinimumHealthyTargetCount`: number = 1 — The minimum number of targets that must be healthy for unhealthy state routing.

  If below this value, send traffic to all targets including unhealthy ones.

- `routingMinimumHealthyTargetPercentage`: number = 0 — The minimum percentage of targets that must be healthy for unhealthy state routing.

  If below this value, send traffic to all targets including unhealthy ones.
  Use 0 for "off".
