All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.googlenative.appengine.v1.kotlin.inputs.LivenessCheckArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.appengine.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.appengine.v1.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.v1.inputs.LivenessCheckArgs =
        com.pulumi.googlenative.appengine.v1.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("fhivvvftqoeaxvym")
    public suspend fun checkInterval(`value`: Output) {
        this.checkInterval = value
    }

    /**
     * @param value Number of consecutive failed checks required before considering the VM unhealthy.
     */
    @JvmName("wafkbwrvdyjoxpar")
    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("rbwvucoushpfixme")
    public suspend fun host(`value`: Output) {
        this.host = value
    }

    /**
     * @param value The initial delay before starting to execute the checks.
     */
    @JvmName("kuuyparellyjkcrr")
    public suspend fun initialDelay(`value`: Output) {
        this.initialDelay = value
    }

    /**
     * @param value The request path.
     */
    @JvmName("kinbsyqlyolyuila")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value Number of consecutive successful checks required before considering the VM healthy.
     */
    @JvmName("xdgotqefcohiyiig")
    public suspend fun successThreshold(`value`: Output) {
        this.successThreshold = value
    }

    /**
     * @param value Time before the check is considered failed.
     */
    @JvmName("rqgtqehiljbqvgkx")
    public suspend fun timeout(`value`: Output) {
        this.timeout = value
    }

    /**
     * @param value Interval between health checks.
     */
    @JvmName("kfjqohktpieegyxn")
    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("qfuoirxymtllqvvi")
    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("unocbfjqeofkxpdf")
    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("cdjksmlkuessdgwb")
    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("eytyjhpumabfwtdl")
    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("deuockjyepuwjvma")
    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("penuxvpeuvwihcrp")
    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