com.pulumi.gcp.compute.kotlin.inputs.InstanceGroupManagerInstanceLifecyclePolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.
@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.InstanceGroupManagerInstanceLifecyclePolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property defaultActionOnFailure , Default behavior for all instance or health check failures. Valid options are: `REPAIR`, `DO_NOTHING`. If `DO_NOTHING` then instances will not be repaired. If `REPAIR` (default), then failed instances will be repaired.
* - - -
* @property forceUpdateOnRepair , Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: `YES`, `NO`. If `YES` and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If `NO` (default), then updates are applied in accordance with the group's update policy type.
*/
public data class InstanceGroupManagerInstanceLifecyclePolicyArgs(
public val defaultActionOnFailure: Output? = null,
public val forceUpdateOnRepair: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.InstanceGroupManagerInstanceLifecyclePolicyArgs =
com.pulumi.gcp.compute.inputs.InstanceGroupManagerInstanceLifecyclePolicyArgs.builder()
.defaultActionOnFailure(defaultActionOnFailure?.applyValue({ args0 -> args0 }))
.forceUpdateOnRepair(forceUpdateOnRepair?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceGroupManagerInstanceLifecyclePolicyArgs].
*/
@PulumiTagMarker
public class InstanceGroupManagerInstanceLifecyclePolicyArgsBuilder internal constructor() {
private var defaultActionOnFailure: Output? = null
private var forceUpdateOnRepair: Output? = null
/**
* @param value , Default behavior for all instance or health check failures. Valid options are: `REPAIR`, `DO_NOTHING`. If `DO_NOTHING` then instances will not be repaired. If `REPAIR` (default), then failed instances will be repaired.
* - - -
*/
@JvmName("hpjptbluxsvsmixx")
public suspend fun defaultActionOnFailure(`value`: Output) {
this.defaultActionOnFailure = value
}
/**
* @param value , Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: `YES`, `NO`. If `YES` and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If `NO` (default), then updates are applied in accordance with the group's update policy type.
*/
@JvmName("emqnwnfjjwjebfqg")
public suspend fun forceUpdateOnRepair(`value`: Output) {
this.forceUpdateOnRepair = value
}
/**
* @param value , Default behavior for all instance or health check failures. Valid options are: `REPAIR`, `DO_NOTHING`. If `DO_NOTHING` then instances will not be repaired. If `REPAIR` (default), then failed instances will be repaired.
* - - -
*/
@JvmName("uksmrxigbycxunlt")
public suspend fun defaultActionOnFailure(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultActionOnFailure = mapped
}
/**
* @param value , Specifies whether to apply the group's latest configuration when repairing a VM. Valid options are: `YES`, `NO`. If `YES` and you updated the group's instance template or per-instance configurations after the VM was created, then these changes are applied when VM is repaired. If `NO` (default), then updates are applied in accordance with the group's update policy type.
*/
@JvmName("xgimocbgrwlmlheu")
public suspend fun forceUpdateOnRepair(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forceUpdateOnRepair = mapped
}
internal fun build(): InstanceGroupManagerInstanceLifecyclePolicyArgs =
InstanceGroupManagerInstanceLifecyclePolicyArgs(
defaultActionOnFailure = defaultActionOnFailure,
forceUpdateOnRepair = forceUpdateOnRepair,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy