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

com.pulumi.googlenative.compute.v1.kotlin.inputs.InstanceGroupManagerAutoHealingPolicyArgs.kt Maven / Gradle / Ivy

Go to download

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.compute.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.compute.v1.inputs.InstanceGroupManagerAutoHealingPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property healthCheck The URL for the health check that signals autohealing.
 * @property initialDelaySec The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].
 */
public data class InstanceGroupManagerAutoHealingPolicyArgs(
    public val healthCheck: Output? = null,
    public val initialDelaySec: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.compute.v1.inputs.InstanceGroupManagerAutoHealingPolicyArgs =
        com.pulumi.googlenative.compute.v1.inputs.InstanceGroupManagerAutoHealingPolicyArgs.builder()
            .healthCheck(healthCheck?.applyValue({ args0 -> args0 }))
            .initialDelaySec(initialDelaySec?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceGroupManagerAutoHealingPolicyArgs].
 */
@PulumiTagMarker
public class InstanceGroupManagerAutoHealingPolicyArgsBuilder internal constructor() {
    private var healthCheck: Output? = null

    private var initialDelaySec: Output? = null

    /**
     * @param value The URL for the health check that signals autohealing.
     */
    @JvmName("sadyanybwmnuhruu")
    public suspend fun healthCheck(`value`: Output) {
        this.healthCheck = value
    }

    /**
     * @param value The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].
     */
    @JvmName("xxikyggvtaxhfrro")
    public suspend fun initialDelaySec(`value`: Output) {
        this.initialDelaySec = value
    }

    /**
     * @param value The URL for the health check that signals autohealing.
     */
    @JvmName("lhrjbknualsnvgba")
    public suspend fun healthCheck(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.healthCheck = mapped
    }

    /**
     * @param value The number of seconds that the managed instance group waits before it applies autohealing policies to new instances or recently recreated instances. This initial delay allows instances to initialize and run their startup scripts before the instance group determines that they are UNHEALTHY. This prevents the managed instance group from recreating its instances prematurely. This value must be from range [0, 3600].
     */
    @JvmName("vhghddclychubkiy")
    public suspend fun initialDelaySec(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.initialDelaySec = mapped
    }

    internal fun build(): InstanceGroupManagerAutoHealingPolicyArgs =
        InstanceGroupManagerAutoHealingPolicyArgs(
            healthCheck = healthCheck,
            initialDelaySec = initialDelaySec,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy