interface TargetGroupHealth
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.ElasticLoadBalancingV2.TargetGroupHealth |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awselasticloadbalancingv2#TargetGroupHealth |
![]() | software.amazon.awscdk.services.elasticloadbalancingv2.TargetGroupHealth |
![]() | aws_cdk.aws_elasticloadbalancingv2.TargetGroupHealth |
![]() | aws-cdk-lib » aws_elasticloadbalancingv2 » TargetGroupHealth |
Properties for configuring a target group health.
Example
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
Name | Type | Description |
---|---|---|
dns | number | The minimum number of targets that must be healthy for DNS failover. |
dns | number | The minimum percentage of targets that must be healthy for DNS failover. |
routing | number | The minimum number of targets that must be healthy for unhealthy state routing. |
routing | number | The minimum percentage of targets that must be healthy for unhealthy state routing. |
dnsMinimumHealthyTargetCount?
Type:
number
(optional, default: 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?
Type:
number
(optional, default: 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?
Type:
number
(optional, default: 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?
Type:
number
(optional, default: 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".