Interface TargetGroupHealth
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
TargetGroupHealth.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-22T11:33:06.461Z")
@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 class
A builder forTargetGroupHealth
static final class
An implementation forTargetGroupHealth
-
Method Summary
Modifier and TypeMethodDescriptionstatic TargetGroupHealth.Builder
builder()
default Number
The minimum number of targets that must be healthy for DNS failover.default Number
The minimum percentage of targets that must be healthy for DNS failover.default Number
The minimum number of targets that must be healthy for unhealthy state routing.default Number
The 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.Builder
ofTargetGroupHealth
-