HealthcheckHttpConfigArgs

data class HealthcheckHttpConfigArgs(val allowInsecure: Output<Boolean>? = null, val expectedBody: Output<String>? = null, val expectedCodes: Output<List<String>>? = null, val followRedirects: Output<Boolean>? = null, val header: Output<Map<String, List<String>>>? = null, val method: Output<String>? = null, val path: Output<String>? = null, val port: Output<Int>? = null) : ConvertibleToJava<HealthcheckHttpConfigArgs>

Constructors

Link copied to clipboard
constructor(allowInsecure: Output<Boolean>? = null, expectedBody: Output<String>? = null, expectedCodes: Output<List<String>>? = null, followRedirects: Output<Boolean>? = null, header: Output<Map<String, List<String>>>? = null, method: Output<String>? = null, path: Output<String>? = null, port: Output<Int>? = null)

Properties

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

Do not validate the certificate when the health check uses HTTPS.

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

A case-insensitive sub-string to look for in the response body. If this string is not found, the origin will be marked as unhealthy.

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

The expected HTTP response codes (e.g. "200") or code ranges (e.g. "2xx" for all codes starting with 2) of the health check.

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

Follow redirects if the origin returns a 3xx status code.

Link copied to clipboard
val header: Output<Map<String, List<String>>>? = null

The HTTP request headers to send in the health check. It is recommended you set a Host header by default. The User-Agent header cannot be overridden.

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

The HTTP method to use for the health check. Available values: "GET", "HEAD".

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

The endpoint path to health check against.

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

Port number to connect to for the health check. Defaults to 80 if type is HTTP or 443 if type is HTTPS.

Functions

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