TargetGroupHealthCheck constructor
Creates a new TargetGroupHealthCheck.
enabled Whether health checks are enabled. Defaults to true.
healthyThreshold Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3.
interval Approximate amount of time, in seconds, between health checks of an individual target. The range is 5-300. For lambda target groups, it needs to be greater than the timeout of the underlying lambda. Defaults to 30.
matcher The HTTP or gRPC codes to use when checking for a successful response from a target.
path Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS.
port The port the load balancer uses when performing health checks on targets.
protocol Protocol the load balancer uses when performing health checks on targets.
timeout Amount of time, in seconds, during which no response from a target means a failed health check. The range is 2–120 seconds. For target groups with a protocol of HTTP, the default is 6 seconds. For target groups with a protocol of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a protocol of GENEVE, the default is 5 seconds. If the target type is lambda, the default is 30 seconds.
unhealthyThreshold Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3.
Implementation
const TargetGroupHealthCheck({
this.enabled,
this.healthyThreshold,
this.interval,
this.matcher,
this.path,
this.port,
this.protocol,
this.timeout,
this.unhealthyThreshold,
});