com.pulumi.gcp.container.kotlin.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs.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.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property blueGreenSettings Settings for blue-green upgrade strategy. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
* @property maxSurge The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
* @property maxUnavailable The maximum number of nodes that can be simultaneously unavailable during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
* @property strategy Strategy used for node pool update. Strategy can only be one of BLUE_GREEN or SURGE. The default is value is SURGE.
*/
public data class ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs(
public val blueGreenSettings: Output? =
null,
public val maxSurge: Output? = null,
public val maxUnavailable: Output? = null,
public val strategy: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs =
com.pulumi.gcp.container.inputs.ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs.builder()
.blueGreenSettings(blueGreenSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.maxSurge(maxSurge?.applyValue({ args0 -> args0 }))
.maxUnavailable(maxUnavailable?.applyValue({ args0 -> args0 }))
.strategy(strategy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs].
*/
@PulumiTagMarker
public class ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgsBuilder internal constructor() {
private var blueGreenSettings:
Output? =
null
private var maxSurge: Output? = null
private var maxUnavailable: Output? = null
private var strategy: Output? = null
/**
* @param value Settings for blue-green upgrade strategy. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("rwyppghcnrqbggdq")
public suspend fun blueGreenSettings(`value`: Output) {
this.blueGreenSettings = value
}
/**
* @param value The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
*/
@JvmName("hnairlccghvpbbhi")
public suspend fun maxSurge(`value`: Output) {
this.maxSurge = value
}
/**
* @param value The maximum number of nodes that can be simultaneously unavailable during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
*/
@JvmName("ouclorjuvlycjwfp")
public suspend fun maxUnavailable(`value`: Output) {
this.maxUnavailable = value
}
/**
* @param value Strategy used for node pool update. Strategy can only be one of BLUE_GREEN or SURGE. The default is value is SURGE.
*/
@JvmName("qrpvdvmwihkxkaht")
public suspend fun strategy(`value`: Output) {
this.strategy = value
}
/**
* @param value Settings for blue-green upgrade strategy. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("tpylwlumeggibkfs")
public suspend fun blueGreenSettings(`value`: ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.blueGreenSettings = mapped
}
/**
* @param argument Settings for blue-green upgrade strategy. To be specified when strategy is set to BLUE_GREEN. Structure is documented below.
*/
@JvmName("ksvknwntmwclpgyx")
public suspend fun blueGreenSettings(argument: suspend ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsArgsBuilder.() -> Unit) {
val toBeMapped =
ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsBlueGreenSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.blueGreenSettings = mapped
}
/**
* @param value The maximum number of nodes that can be created beyond the current size of the node pool during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
*/
@JvmName("ciphrghdttffqsxa")
public suspend fun maxSurge(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxSurge = mapped
}
/**
* @param value The maximum number of nodes that can be simultaneously unavailable during the upgrade process. To be used when strategy is set to SURGE. Default is 0.
*/
@JvmName("tosgyhcnnbvrkwtj")
public suspend fun maxUnavailable(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxUnavailable = mapped
}
/**
* @param value Strategy used for node pool update. Strategy can only be one of BLUE_GREEN or SURGE. The default is value is SURGE.
*/
@JvmName("ljfiyuikfuqrpmwx")
public suspend fun strategy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.strategy = mapped
}
internal fun build(): ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs =
ClusterClusterAutoscalingAutoProvisioningDefaultsUpgradeSettingsArgs(
blueGreenSettings = blueGreenSettings,
maxSurge = maxSurge,
maxUnavailable = maxUnavailable,
strategy = strategy,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy