Interface TargetGroupHealth
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TargetGroupHealth.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:39.937Z")
@Stability(Stable)
public interface TargetGroupHealth
extends software.amazon.jsii.JsiiSerializable
Properties for configuring a target group health.
Example:
Vpc vpc;
ApplicationTargetGroup targetGroup = ApplicationTargetGroup.Builder.create(this, "TargetGroup")
.vpc(vpc)
.port(80)
.targetGroupHealth(TargetGroupHealth.builder()
.dnsMinimumHealthyTargetCount(3)
.dnsMinimumHealthyTargetPercentage(70)
.routingMinimumHealthyTargetCount(2)
.routingMinimumHealthyTargetPercentage(50)
.build())
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forTargetGroupHealthstatic final classAn implementation forTargetGroupHealth -
Method Summary
Modifier and TypeMethodDescriptionstatic TargetGroupHealth.Builderbuilder()default NumberThe minimum number of targets that must be healthy for DNS failover.default NumberThe minimum percentage of targets that must be healthy for DNS failover.default NumberThe minimum number of targets that must be healthy for unhealthy state routing.default NumberThe minimum percentage of targets that must be healthy for unhealthy state routing.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDnsMinimumHealthyTargetCount
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".
Default: 1
-
getDnsMinimumHealthyTargetPercentage
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".
Default: 0
-
getRoutingMinimumHealthyTargetCount
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.
Default: 1
-
getRoutingMinimumHealthyTargetPercentage
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".
Default: 0
-
builder
- Returns:
- a
TargetGroupHealth.BuilderofTargetGroupHealth
-