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

com.pulumi.gcp.container.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.

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.NodePoolAutoscalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property locationPolicy Location policy specifies the algorithm used when
 * scaling-up the node pool. Location policy is supported only in 1.24.1+ clusters.
 * * "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones.
 * * "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations,
 * and reduce preemption risk for Spot VMs.
 * @property maxNodeCount Maximum number of nodes per zone in the NodePool.
 * Must be >= min_node_count. Cannot be used with total limits.
 * @property minNodeCount Minimum number of nodes per zone in the NodePool.
 * Must be >=0 and <= `max_node_count`. Cannot be used with total limits.
 * @property totalMaxNodeCount Total maximum number of nodes in the NodePool.
 * Must be >= total_min_node_count. Cannot be used with per zone limits.
 * Total size limits are supported only in 1.24.1+ clusters.
 * @property totalMinNodeCount Total minimum number of nodes in the NodePool.
 * Must be >=0 and <= `total_max_node_count`. Cannot be used with per zone limits.
 * Total size limits are supported only in 1.24.1+ clusters.
 */
public data class NodePoolAutoscalingArgs(
    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.gcp.container.inputs.NodePoolAutoscalingArgs =
        com.pulumi.gcp.container.inputs.NodePoolAutoscalingArgs.builder()
            .locationPolicy(locationPolicy?.applyValue({ args0 -> args0 }))
            .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 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 Location policy specifies the algorithm used when
     * scaling-up the node pool. Location policy is supported only in 1.24.1+ clusters.
     * * "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones.
     * * "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations,
     * and reduce preemption risk for Spot VMs.
     */
    @JvmName("upghgugnymhosefx")
    public suspend fun locationPolicy(`value`: Output) {
        this.locationPolicy = value
    }

    /**
     * @param value Maximum number of nodes per zone in the NodePool.
     * Must be >= min_node_count. Cannot be used with total limits.
     */
    @JvmName("hobiyoxyuichpwlg")
    public suspend fun maxNodeCount(`value`: Output) {
        this.maxNodeCount = value
    }

    /**
     * @param value Minimum number of nodes per zone in the NodePool.
     * Must be >=0 and <= `max_node_count`. Cannot be used with total limits.
     */
    @JvmName("ipjkhhoxsnvhegqh")
    public suspend fun minNodeCount(`value`: Output) {
        this.minNodeCount = value
    }

    /**
     * @param value Total maximum number of nodes in the NodePool.
     * Must be >= total_min_node_count. Cannot be used with per zone limits.
     * Total size limits are supported only in 1.24.1+ clusters.
     */
    @JvmName("mnpjfftddpfftlpv")
    public suspend fun totalMaxNodeCount(`value`: Output) {
        this.totalMaxNodeCount = value
    }

    /**
     * @param value Total minimum number of nodes in the NodePool.
     * Must be >=0 and <= `total_max_node_count`. Cannot be used with per zone limits.
     * Total size limits are supported only in 1.24.1+ clusters.
     */
    @JvmName("fgmunatsioaujigr")
    public suspend fun totalMinNodeCount(`value`: Output) {
        this.totalMinNodeCount = value
    }

    /**
     * @param value Location policy specifies the algorithm used when
     * scaling-up the node pool. Location policy is supported only in 1.24.1+ clusters.
     * * "BALANCED" - Is a best effort policy that aims to balance the sizes of available zones.
     * * "ANY" - Instructs the cluster autoscaler to prioritize utilization of unused reservations,
     * and reduce preemption risk for Spot VMs.
     */
    @JvmName("ckxuvymphtujfmys")
    public suspend fun locationPolicy(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.locationPolicy = mapped
    }

    /**
     * @param value Maximum number of nodes per zone in the NodePool.
     * Must be >= min_node_count. Cannot be used with total limits.
     */
    @JvmName("bbdyfktlnxjsovmv")
    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 per zone in the NodePool.
     * Must be >=0 and <= `max_node_count`. Cannot be used with total limits.
     */
    @JvmName("jlsuicmaifjkgapm")
    public suspend fun minNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minNodeCount = mapped
    }

    /**
     * @param value Total maximum number of nodes in the NodePool.
     * Must be >= total_min_node_count. Cannot be used with per zone limits.
     * Total size limits are supported only in 1.24.1+ clusters.
     */
    @JvmName("xqbrrijqymjgvgjf")
    public suspend fun totalMaxNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMaxNodeCount = mapped
    }

    /**
     * @param value Total minimum number of nodes in the NodePool.
     * Must be >=0 and <= `total_max_node_count`. Cannot be used with per zone limits.
     * Total size limits are supported only in 1.24.1+ clusters.
     */
    @JvmName("qsbgsrcueaoorjof")
    public suspend fun totalMinNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMinNodeCount = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy