com.pulumi.aws.eks.kotlin.inputs.NodeGroupUpdateConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.eks.kotlin.inputs
import com.pulumi.aws.eks.inputs.NodeGroupUpdateConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property maxUnavailable Desired max number of unavailable worker nodes during node group update.
* @property maxUnavailablePercentage Desired max percentage of unavailable worker nodes during node group update.
*/
public data class NodeGroupUpdateConfigArgs(
public val maxUnavailable: Output? = null,
public val maxUnavailablePercentage: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.eks.inputs.NodeGroupUpdateConfigArgs =
com.pulumi.aws.eks.inputs.NodeGroupUpdateConfigArgs.builder()
.maxUnavailable(maxUnavailable?.applyValue({ args0 -> args0 }))
.maxUnavailablePercentage(maxUnavailablePercentage?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NodeGroupUpdateConfigArgs].
*/
@PulumiTagMarker
public class NodeGroupUpdateConfigArgsBuilder internal constructor() {
private var maxUnavailable: Output? = null
private var maxUnavailablePercentage: Output? = null
/**
* @param value Desired max number of unavailable worker nodes during node group update.
*/
@JvmName("emouflcjjhpspqkt")
public suspend fun maxUnavailable(`value`: Output) {
this.maxUnavailable = value
}
/**
* @param value Desired max percentage of unavailable worker nodes during node group update.
*/
@JvmName("ysxljfvtkdeaxich")
public suspend fun maxUnavailablePercentage(`value`: Output) {
this.maxUnavailablePercentage = value
}
/**
* @param value Desired max number of unavailable worker nodes during node group update.
*/
@JvmName("gtiaqcmrygvdaflx")
public suspend fun maxUnavailable(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxUnavailable = mapped
}
/**
* @param value Desired max percentage of unavailable worker nodes during node group update.
*/
@JvmName("cbvmtulhuigfjipn")
public suspend fun maxUnavailablePercentage(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxUnavailablePercentage = mapped
}
internal fun build(): NodeGroupUpdateConfigArgs = NodeGroupUpdateConfigArgs(
maxUnavailable = maxUnavailable,
maxUnavailablePercentage = maxUnavailablePercentage,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy