com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceGroupManagerInstanceLifecyclePolicyArgs.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.RegionInstanceGroupManagerInstanceLifecyclePolicyArgs.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.
* - - -
* The `instance_flexibility_policy` block supports:
* @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 RegionInstanceGroupManagerInstanceLifecyclePolicyArgs(
public val defaultActionOnFailure: Output? = null,
public val forceUpdateOnRepair: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerInstanceLifecyclePolicyArgs =
com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerInstanceLifecyclePolicyArgs.builder()
.defaultActionOnFailure(defaultActionOnFailure?.applyValue({ args0 -> args0 }))
.forceUpdateOnRepair(forceUpdateOnRepair?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionInstanceGroupManagerInstanceLifecyclePolicyArgs].
*/
@PulumiTagMarker
public class RegionInstanceGroupManagerInstanceLifecyclePolicyArgsBuilder 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.
* - - -
* The `instance_flexibility_policy` block supports:
*/
@JvmName("uamwujnhaolehmvq")
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("smvaexwwsyqxwfxn")
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.
* - - -
* The `instance_flexibility_policy` block supports:
*/
@JvmName("sipqqahmaynirota")
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("gglmbovmyvxpyolo")
public suspend fun forceUpdateOnRepair(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forceUpdateOnRepair = mapped
}
internal fun build(): RegionInstanceGroupManagerInstanceLifecyclePolicyArgs =
RegionInstanceGroupManagerInstanceLifecyclePolicyArgs(
defaultActionOnFailure = defaultActionOnFailure,
forceUpdateOnRepair = forceUpdateOnRepair,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy