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

com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceGroupManagerAutoHealingPoliciesArgs.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.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerAutoHealingPoliciesArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property healthCheck The health check resource 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. Between 0 and 3600.
 */
public data class RegionInstanceGroupManagerAutoHealingPoliciesArgs(
    public val healthCheck: Output,
    public val initialDelaySec: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerAutoHealingPoliciesArgs =
        com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerAutoHealingPoliciesArgs.builder()
            .healthCheck(healthCheck.applyValue({ args0 -> args0 }))
            .initialDelaySec(initialDelaySec.applyValue({ args0 -> args0 })).build()
}

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

    private var initialDelaySec: Output? = null

    /**
     * @param value The health check resource that signals autohealing.
     */
    @JvmName("nrnlbeqavwcuijee")
    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. Between 0 and 3600.
     */
    @JvmName("drbwfmqoqmmqpxcc")
    public suspend fun initialDelaySec(`value`: Output) {
        this.initialDelaySec = value
    }

    /**
     * @param value The health check resource that signals autohealing.
     */
    @JvmName("oatxdwfhylnuxtgh")
    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. Between 0 and 3600.
     */
    @JvmName("pxuquyefddurtdmn")
    public suspend fun initialDelaySec(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.initialDelaySec = mapped
    }

    internal fun build(): RegionInstanceGroupManagerAutoHealingPoliciesArgs =
        RegionInstanceGroupManagerAutoHealingPoliciesArgs(
            healthCheck = healthCheck ?: throw PulumiNullFieldException("healthCheck"),
            initialDelaySec = initialDelaySec ?: throw PulumiNullFieldException("initialDelaySec"),
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy