TargetGroupHealthCheckArgs

data class TargetGroupHealthCheckArgs(val enabled: Output<Boolean>? = null, val healthyThreshold: Output<Int>? = null, val interval: Output<Int>? = null, val matcher: Output<String>? = null, val path: Output<String>? = null, val port: Output<String>? = null, val protocol: Output<String>? = null, val timeout: Output<Int>? = null, val unhealthyThreshold: Output<Int>? = null) : ConvertibleToJava<TargetGroupHealthCheckArgs>

Constructors

Link copied to clipboard
constructor(enabled: Output<Boolean>? = null, healthyThreshold: Output<Int>? = null, interval: Output<Int>? = null, matcher: Output<String>? = null, path: Output<String>? = null, port: Output<String>? = null, protocol: Output<String>? = null, timeout: Output<Int>? = null, unhealthyThreshold: Output<Int>? = null)

Properties

Link copied to clipboard
val enabled: Output<Boolean>? = null

Whether health checks are enabled. Defaults to true.

Link copied to clipboard
val healthyThreshold: Output<Int>? = null

Number of consecutive health check successes required before considering a target healthy. The range is 2-10. Defaults to 3.

Link copied to clipboard
val interval: Output<Int>? = null

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.

Link copied to clipboard
val matcher: Output<String>? = null

Response codes to use when checking for a healthy responses from a target. You can specify multiple values (for example, "200,202" for HTTP(s) or "0,12" for GRPC) or a range of values (for example, "200-299" or "0-99"). Required for HTTP/HTTPS/GRPC ALB. Only applies to Application Load Balancers (i.e., HTTP/HTTPS/GRPC) not Network Load Balancers (i.e., TCP).

Link copied to clipboard
val path: Output<String>? = null

Destination for the health check request. Required for HTTP/HTTPS ALB and HTTP NLB. Only applies to HTTP/HTTPS.

Link copied to clipboard
val port: Output<String>? = null

The port the load balancer uses when performing health checks on targets. Default is traffic-port.

Link copied to clipboard
val protocol: Output<String>? = null

Protocol the load balancer uses when performing health checks on targets. Must be either TCP, HTTP, or HTTPS. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. Defaults to HTTP.

Link copied to clipboard
val timeout: Output<Int>? = null

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.

Link copied to clipboard
val unhealthyThreshold: Output<Int>? = null

Number of consecutive health check failures required before considering a target unhealthy. The range is 2-10. Defaults to 3.

Functions

Link copied to clipboard
open override fun toJava(): TargetGroupHealthCheckArgs