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

com.pulumi.googlenative.container.v1.kotlin.inputs.NodePoolAutoscalingArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.googlenative.container.v1.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.container.v1.inputs.NodePoolAutoscalingArgs.builder
import com.pulumi.googlenative.container.v1.kotlin.enums.NodePoolAutoscalingLocationPolicy
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * NodePoolAutoscaling contains information required by cluster autoscaler to adjust the size of the node pool to the current cluster usage.
 * @property autoprovisioned Can this node pool be deleted automatically.
 * @property enabled Is autoscaling enabled for this node pool.
 * @property locationPolicy Location policy used when scaling up a nodepool.
 * @property maxNodeCount Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
 * @property minNodeCount Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
 * @property totalMaxNodeCount Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
 * @property totalMinNodeCount Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
 */
public data class NodePoolAutoscalingArgs(
    public val autoprovisioned: Output? = null,
    public val enabled: Output? = null,
    public val locationPolicy: Output? = null,
    public val maxNodeCount: Output? = null,
    public val minNodeCount: Output? = null,
    public val totalMaxNodeCount: Output? = null,
    public val totalMinNodeCount: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.googlenative.container.v1.inputs.NodePoolAutoscalingArgs =
        com.pulumi.googlenative.container.v1.inputs.NodePoolAutoscalingArgs.builder()
            .autoprovisioned(autoprovisioned?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .locationPolicy(locationPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .maxNodeCount(maxNodeCount?.applyValue({ args0 -> args0 }))
            .minNodeCount(minNodeCount?.applyValue({ args0 -> args0 }))
            .totalMaxNodeCount(totalMaxNodeCount?.applyValue({ args0 -> args0 }))
            .totalMinNodeCount(totalMinNodeCount?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [NodePoolAutoscalingArgs].
 */
@PulumiTagMarker
public class NodePoolAutoscalingArgsBuilder internal constructor() {
    private var autoprovisioned: Output? = null

    private var enabled: Output? = null

    private var locationPolicy: Output? = null

    private var maxNodeCount: Output? = null

    private var minNodeCount: Output? = null

    private var totalMaxNodeCount: Output? = null

    private var totalMinNodeCount: Output? = null

    /**
     * @param value Can this node pool be deleted automatically.
     */
    @JvmName("yjgahxkmiehkpiic")
    public suspend fun autoprovisioned(`value`: Output) {
        this.autoprovisioned = value
    }

    /**
     * @param value Is autoscaling enabled for this node pool.
     */
    @JvmName("ruyoxtjtvhodqbru")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Location policy used when scaling up a nodepool.
     */
    @JvmName("wmxocmlehmkrdwco")
    public suspend fun locationPolicy(`value`: Output) {
        this.locationPolicy = value
    }

    /**
     * @param value Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
     */
    @JvmName("xldwwwcmvlhacjpj")
    public suspend fun maxNodeCount(`value`: Output) {
        this.maxNodeCount = value
    }

    /**
     * @param value Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
     */
    @JvmName("avcjcdokakhquwys")
    public suspend fun minNodeCount(`value`: Output) {
        this.minNodeCount = value
    }

    /**
     * @param value Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
     */
    @JvmName("aiuibawuyhdxxskj")
    public suspend fun totalMaxNodeCount(`value`: Output) {
        this.totalMaxNodeCount = value
    }

    /**
     * @param value Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
     */
    @JvmName("gdfaswbseamfayow")
    public suspend fun totalMinNodeCount(`value`: Output) {
        this.totalMinNodeCount = value
    }

    /**
     * @param value Can this node pool be deleted automatically.
     */
    @JvmName("etgtagdchefifije")
    public suspend fun autoprovisioned(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoprovisioned = mapped
    }

    /**
     * @param value Is autoscaling enabled for this node pool.
     */
    @JvmName("wvvbdjsymmiuwgjm")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Location policy used when scaling up a nodepool.
     */
    @JvmName("qkneehvoyutpdnfr")
    public suspend fun locationPolicy(`value`: NodePoolAutoscalingLocationPolicy?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationPolicy = mapped
    }

    /**
     * @param value Maximum number of nodes for one location in the NodePool. Must be >= min_node_count. There has to be enough quota to scale up the cluster.
     */
    @JvmName("sgyiqlgknvwsskqw")
    public suspend fun maxNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxNodeCount = mapped
    }

    /**
     * @param value Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
     */
    @JvmName("yllqymoxfyunptuf")
    public suspend fun minNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minNodeCount = mapped
    }

    /**
     * @param value Maximum number of nodes in the node pool. Must be greater than total_min_node_count. There has to be enough quota to scale up the cluster. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
     */
    @JvmName("rdnrwggammfrjaja")
    public suspend fun totalMaxNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMaxNodeCount = mapped
    }

    /**
     * @param value Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total_*_node_count fields are mutually exclusive with the *_node_count fields.
     */
    @JvmName("tkmiduhgjwesllnf")
    public suspend fun totalMinNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMinNodeCount = mapped
    }

    internal fun build(): NodePoolAutoscalingArgs = NodePoolAutoscalingArgs(
        autoprovisioned = autoprovisioned,
        enabled = enabled,
        locationPolicy = locationPolicy,
        maxNodeCount = maxNodeCount,
        minNodeCount = minNodeCount,
        totalMaxNodeCount = totalMaxNodeCount,
        totalMinNodeCount = totalMinNodeCount,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy