com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs.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.container.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property nodePoolSoakDuration Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
* @property standardRolloutPolicy Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
public data class ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs(
public val nodePoolSoakDuration: Output? = null,
public val standardRolloutPolicy: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs =
com.pulumi.gcp.container.inputs.ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs.builder()
.nodePoolSoakDuration(nodePoolSoakDuration?.applyValue({ args0 -> args0 }))
.standardRolloutPolicy(
standardRolloutPolicy.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs].
*/
@PulumiTagMarker
public class ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgsBuilder internal constructor() {
private var nodePoolSoakDuration: Output? = null
private var standardRolloutPolicy:
Output? = null
/**
* @param value Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
*/
@JvmName("wxlfnyrmqlomipyj")
public suspend fun nodePoolSoakDuration(`value`: Output) {
this.nodePoolSoakDuration = value
}
/**
* @param value Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("xtulgoymmxfjdcde")
public suspend fun standardRolloutPolicy(`value`: Output) {
this.standardRolloutPolicy = value
}
/**
* @param value Time needed after draining entire blue pool. After this period, blue pool will be cleaned up. A duration in seconds with up to nine fractional digits, ending with 's'. Example: "3.5s".
*/
@JvmName("survtqymxynoiiue")
public suspend fun nodePoolSoakDuration(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nodePoolSoakDuration = mapped
}
/**
* @param value Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("sivdpsiuaridswgw")
public suspend fun standardRolloutPolicy(`value`: ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.standardRolloutPolicy = mapped
}
/**
* @param argument Standard policy for the blue-green upgrade. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("oplftwdjefjhldkr")
public suspend fun standardRolloutPolicy(argument: suspend ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterNodePoolUpgradeSettingsBlueGreenSettingsStandardRolloutPolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.standardRolloutPolicy = mapped
}
internal fun build(): ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs =
ClusterNodePoolUpgradeSettingsBlueGreenSettingsArgs(
nodePoolSoakDuration = nodePoolSoakDuration,
standardRolloutPolicy = standardRolloutPolicy ?: throw
PulumiNullFieldException("standardRolloutPolicy"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy