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

The HTTP or gRPC codes to use when checking for a successful response from a target. The health_check.protocol must be one of HTTP or HTTPS or the target_type must be lambda. Values can be comma-separated individual values (e.g., "200,202") or a range of values (e.g., "200-299").

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. Valid values are either traffic-port, to use the same port as the target group, or a valid port number between 1 and 65536. 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 one of TCP, HTTP, or HTTPS. The TCP protocol is not supported for health checks if the protocol of the target group is HTTP or HTTPS. Default is HTTP. Cannot be specified when the target_type is lambda.

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