com.pulumi.aws.eks.kotlin.inputs.NodeGroupTaintArgs.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.NodeGroupTaintArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property effect The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
* @property key The key of the taint. Maximum length of 63.
* @property value The value of the taint. Maximum length of 63.
*/
public data class NodeGroupTaintArgs(
public val effect: Output,
public val key: Output,
public val `value`: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.eks.inputs.NodeGroupTaintArgs =
com.pulumi.aws.eks.inputs.NodeGroupTaintArgs.builder()
.effect(effect.applyValue({ args0 -> args0 }))
.key(key.applyValue({ args0 -> args0 }))
.`value`(`value`?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NodeGroupTaintArgs].
*/
@PulumiTagMarker
public class NodeGroupTaintArgsBuilder internal constructor() {
private var effect: Output? = null
private var key: Output? = null
private var `value`: Output? = null
/**
* @param value The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
*/
@JvmName("tbjouddajrmgwjsh")
public suspend fun effect(`value`: Output) {
this.effect = value
}
/**
* @param value The key of the taint. Maximum length of 63.
*/
@JvmName("qaokdqlrmbdcxbnp")
public suspend fun key(`value`: Output) {
this.key = value
}
/**
* @param value The value of the taint. Maximum length of 63.
*/
@JvmName("nsltomjfbbuphlps")
public suspend fun `value`(`value`: Output) {
this.`value` = value
}
/**
* @param value The effect of the taint. Valid values: `NO_SCHEDULE`, `NO_EXECUTE`, `PREFER_NO_SCHEDULE`.
*/
@JvmName("mdgfjlkmwftcpcjx")
public suspend fun effect(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.effect = mapped
}
/**
* @param value The key of the taint. Maximum length of 63.
*/
@JvmName("jiafwbcluqkceysw")
public suspend fun key(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.key = mapped
}
/**
* @param value The value of the taint. Maximum length of 63.
*/
@JvmName("axgjbvjaxbmlsyro")
public suspend fun `value`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`value` = mapped
}
internal fun build(): NodeGroupTaintArgs = NodeGroupTaintArgs(
effect = effect ?: throw PulumiNullFieldException("effect"),
key = key ?: throw PulumiNullFieldException("key"),
`value` = `value`,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy