
com.pulumi.googlenative.appengine.v1beta.kotlin.inputs.LivenessCheckArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-google-native-kotlin Show documentation
Show all versions of pulumi-google-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.appengine.v1beta.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.appengine.v1beta.inputs.LivenessCheckArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Health checking configuration for VM instances. Unhealthy instances are killed and replaced with new instances.
* @property checkInterval Interval between health checks.
* @property failureThreshold Number of consecutive failed checks required before considering the VM unhealthy.
* @property host Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
* @property initialDelay The initial delay before starting to execute the checks.
* @property path The request path.
* @property successThreshold Number of consecutive successful checks required before considering the VM healthy.
* @property timeout Time before the check is considered failed.
*/
public data class LivenessCheckArgs(
public val checkInterval: Output? = null,
public val failureThreshold: Output? = null,
public val host: Output? = null,
public val initialDelay: Output? = null,
public val path: Output? = null,
public val successThreshold: Output? = null,
public val timeout: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.appengine.v1beta.inputs.LivenessCheckArgs =
com.pulumi.googlenative.appengine.v1beta.inputs.LivenessCheckArgs.builder()
.checkInterval(checkInterval?.applyValue({ args0 -> args0 }))
.failureThreshold(failureThreshold?.applyValue({ args0 -> args0 }))
.host(host?.applyValue({ args0 -> args0 }))
.initialDelay(initialDelay?.applyValue({ args0 -> args0 }))
.path(path?.applyValue({ args0 -> args0 }))
.successThreshold(successThreshold?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [LivenessCheckArgs].
*/
@PulumiTagMarker
public class LivenessCheckArgsBuilder internal constructor() {
private var checkInterval: Output? = null
private var failureThreshold: Output? = null
private var host: Output? = null
private var initialDelay: Output? = null
private var path: Output? = null
private var successThreshold: Output? = null
private var timeout: Output? = null
/**
* @param value Interval between health checks.
*/
@JvmName("jeuwbdmhlkslbsnv")
public suspend fun checkInterval(`value`: Output) {
this.checkInterval = value
}
/**
* @param value Number of consecutive failed checks required before considering the VM unhealthy.
*/
@JvmName("bdtistrwgmfxpdnq")
public suspend fun failureThreshold(`value`: Output) {
this.failureThreshold = value
}
/**
* @param value Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
*/
@JvmName("fxhckyfnlloxcquv")
public suspend fun host(`value`: Output) {
this.host = value
}
/**
* @param value The initial delay before starting to execute the checks.
*/
@JvmName("aloiwlmllfqdcwyd")
public suspend fun initialDelay(`value`: Output) {
this.initialDelay = value
}
/**
* @param value The request path.
*/
@JvmName("qhxdfmunennjqowm")
public suspend fun path(`value`: Output) {
this.path = value
}
/**
* @param value Number of consecutive successful checks required before considering the VM healthy.
*/
@JvmName("odcxorkaeauwdwnm")
public suspend fun successThreshold(`value`: Output) {
this.successThreshold = value
}
/**
* @param value Time before the check is considered failed.
*/
@JvmName("yoplnlwrsenqlsur")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value Interval between health checks.
*/
@JvmName("paatrqbmypmtuukq")
public suspend fun checkInterval(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.checkInterval = mapped
}
/**
* @param value Number of consecutive failed checks required before considering the VM unhealthy.
*/
@JvmName("xxmtnmgqyvkkwxlq")
public suspend fun failureThreshold(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.failureThreshold = mapped
}
/**
* @param value Host header to send when performing a HTTP Liveness check. Example: "myapp.appspot.com"
*/
@JvmName("mpoyajotknocoigl")
public suspend fun host(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.host = mapped
}
/**
* @param value The initial delay before starting to execute the checks.
*/
@JvmName("lxqsfnfgaxtpaajs")
public suspend fun initialDelay(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.initialDelay = mapped
}
/**
* @param value The request path.
*/
@JvmName("htovmajyxcmmvhei")
public suspend fun path(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.path = mapped
}
/**
* @param value Number of consecutive successful checks required before considering the VM healthy.
*/
@JvmName("upsembausnayowys")
public suspend fun successThreshold(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.successThreshold = mapped
}
/**
* @param value Time before the check is considered failed.
*/
@JvmName("uhjjqjmiqptryqgn")
public suspend fun timeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
internal fun build(): LivenessCheckArgs = LivenessCheckArgs(
checkInterval = checkInterval,
failureThreshold = failureThreshold,
host = host,
initialDelay = initialDelay,
path = path,
successThreshold = successThreshold,
timeout = timeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy