All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.container.kotlin.inputs.AwsNodePoolUpdateSettingsSurgeSettingsArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.12.0.0
Show newest version
@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.AwsNodePoolUpdateSettingsSurgeSettingsArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxSurge Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.
 * @property maxUnavailable Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.
 */
public data class AwsNodePoolUpdateSettingsSurgeSettingsArgs(
    public val maxSurge: Output? = null,
    public val maxUnavailable: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.container.inputs.AwsNodePoolUpdateSettingsSurgeSettingsArgs = com.pulumi.gcp.container.inputs.AwsNodePoolUpdateSettingsSurgeSettingsArgs.builder()
        .maxSurge(maxSurge?.applyValue({ args0 -> args0 }))
        .maxUnavailable(maxUnavailable?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AwsNodePoolUpdateSettingsSurgeSettingsArgs].
 */
@PulumiTagMarker
public class AwsNodePoolUpdateSettingsSurgeSettingsArgsBuilder internal constructor() {
    private var maxSurge: Output? = null

    private var maxUnavailable: Output? = null

    /**
     * @param value Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.
     */
    @JvmName("cvvadrvwmwovthew")
    public suspend fun maxSurge(`value`: Output) {
        this.maxSurge = value
    }

    /**
     * @param value Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.
     */
    @JvmName("duphjkasjdjkjwfi")
    public suspend fun maxUnavailable(`value`: Output) {
        this.maxUnavailable = value
    }

    /**
     * @param value Optional. The maximum number of nodes that can be created beyond the current size of the node pool during the update process.
     */
    @JvmName("vlduntafhwsmkwya")
    public suspend fun maxSurge(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxSurge = mapped
    }

    /**
     * @param value Optional. The maximum number of nodes that can be simultaneously unavailable during the update process. A node is considered unavailable if its status is not Ready.
     */
    @JvmName("icofgugitdldxqsi")
    public suspend fun maxUnavailable(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxUnavailable = mapped
    }

    internal fun build(): AwsNodePoolUpdateSettingsSurgeSettingsArgs =
        AwsNodePoolUpdateSettingsSurgeSettingsArgs(
            maxSurge = maxSurge,
            maxUnavailable = maxUnavailable,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy