com.pulumi.gcp.compute.kotlin.inputs.RegionInstanceGroupManagerStandbyPolicyArgs.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.RegionInstanceGroupManagerStandbyPolicyArgs.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 initialDelaySec Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
* @property mode Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. Valid options are: `MANUAL`, `SCALE_OUT_POOL`. If `MANUAL`(default), you have full control over which VMs are stopped and suspended in the MIG. If `SCALE_OUT_POOL`, the MIG uses the VMs from the standby pools to accelerate the scale out by resuming or starting them and then automatically replenishes the standby pool with new VMs to maintain the target sizes.
* - - -
*/
public data class RegionInstanceGroupManagerStandbyPolicyArgs(
public val initialDelaySec: Output? = null,
public val mode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerStandbyPolicyArgs =
com.pulumi.gcp.compute.inputs.RegionInstanceGroupManagerStandbyPolicyArgs.builder()
.initialDelaySec(initialDelaySec?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RegionInstanceGroupManagerStandbyPolicyArgs].
*/
@PulumiTagMarker
public class RegionInstanceGroupManagerStandbyPolicyArgsBuilder internal constructor() {
private var initialDelaySec: Output? = null
private var mode: Output? = null
/**
* @param value Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
*/
@JvmName("ivtsjnqtugjompde")
public suspend fun initialDelaySec(`value`: Output) {
this.initialDelaySec = value
}
/**
* @param value Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. Valid options are: `MANUAL`, `SCALE_OUT_POOL`. If `MANUAL`(default), you have full control over which VMs are stopped and suspended in the MIG. If `SCALE_OUT_POOL`, the MIG uses the VMs from the standby pools to accelerate the scale out by resuming or starting them and then automatically replenishes the standby pool with new VMs to maintain the target sizes.
* - - -
*/
@JvmName("bjvontiibyaialdh")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value Specifies the number of seconds that the MIG should wait to suspend or stop a VM after that VM was created. The initial delay gives the initialization script the time to prepare your VM for a quick scale out. The value of initial delay must be between 0 and 3600 seconds. The default value is 0.
*/
@JvmName("jbewvpxloxucrhks")
public suspend fun initialDelaySec(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.initialDelaySec = mapped
}
/**
* @param value Defines how a MIG resumes or starts VMs from a standby pool when the group scales out. Valid options are: `MANUAL`, `SCALE_OUT_POOL`. If `MANUAL`(default), you have full control over which VMs are stopped and suspended in the MIG. If `SCALE_OUT_POOL`, the MIG uses the VMs from the standby pools to accelerate the scale out by resuming or starting them and then automatically replenishes the standby pool with new VMs to maintain the target sizes.
* - - -
*/
@JvmName("naietqbulgovltuw")
public suspend fun mode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): RegionInstanceGroupManagerStandbyPolicyArgs =
RegionInstanceGroupManagerStandbyPolicyArgs(
initialDelaySec = initialDelaySec,
mode = mode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy