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

com.pulumi.aws.eks.kotlin.inputs.NodeGroupScalingConfigArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.eks.kotlin.inputs

import com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs.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.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property desiredSize Desired number of worker nodes.
 * @property maxSize Maximum number of worker nodes.
 * @property minSize Minimum number of worker nodes.
 */
public data class NodeGroupScalingConfigArgs(
    public val desiredSize: Output,
    public val maxSize: Output,
    public val minSize: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs =
        com.pulumi.aws.eks.inputs.NodeGroupScalingConfigArgs.builder()
            .desiredSize(desiredSize.applyValue({ args0 -> args0 }))
            .maxSize(maxSize.applyValue({ args0 -> args0 }))
            .minSize(minSize.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodeGroupScalingConfigArgs].
 */
@PulumiTagMarker
public class NodeGroupScalingConfigArgsBuilder internal constructor() {
    private var desiredSize: Output? = null

    private var maxSize: Output? = null

    private var minSize: Output? = null

    /**
     * @param value Desired number of worker nodes.
     */
    @JvmName("ybcenlvqkpmduyex")
    public suspend fun desiredSize(`value`: Output) {
        this.desiredSize = value
    }

    /**
     * @param value Maximum number of worker nodes.
     */
    @JvmName("xipgsbtyynsbmske")
    public suspend fun maxSize(`value`: Output) {
        this.maxSize = value
    }

    /**
     * @param value Minimum number of worker nodes.
     */
    @JvmName("vlghkwcfxhdwnwbo")
    public suspend fun minSize(`value`: Output) {
        this.minSize = value
    }

    /**
     * @param value Desired number of worker nodes.
     */
    @JvmName("qkeeuollwhbvplle")
    public suspend fun desiredSize(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredSize = mapped
    }

    /**
     * @param value Maximum number of worker nodes.
     */
    @JvmName("enilfvyyukqskjcx")
    public suspend fun maxSize(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.maxSize = mapped
    }

    /**
     * @param value Minimum number of worker nodes.
     */
    @JvmName("hajjjunagybvnuyt")
    public suspend fun minSize(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.minSize = mapped
    }

    internal fun build(): NodeGroupScalingConfigArgs = NodeGroupScalingConfigArgs(
        desiredSize = desiredSize ?: throw PulumiNullFieldException("desiredSize"),
        maxSize = maxSize ?: throw PulumiNullFieldException("maxSize"),
        minSize = minSize ?: throw PulumiNullFieldException("minSize"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy