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

com.pulumi.gcp.container.kotlin.inputs.ClusterNodePoolAutoscalingArgs.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.10.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.ClusterNodePoolAutoscalingArgs.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. "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 reduces preemption risk for Spot VMs.
 * @property maxNodeCount Maximum number of nodes per zone in the node pool. Must be >= min_node_count. Cannot be used with total limits.
 * @property minNodeCount Minimum number of nodes per zone in the node pool. Must be >=0 and <= max_node_count. Cannot be used with total limits.
 * @property totalMaxNodeCount Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits.
 * @property totalMinNodeCount Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits.
 */
public data class ClusterNodePoolAutoscalingArgs(
    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.ClusterNodePoolAutoscalingArgs =
        com.pulumi.gcp.container.inputs.ClusterNodePoolAutoscalingArgs.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 [ClusterNodePoolAutoscalingArgs].
 */
@PulumiTagMarker
public class ClusterNodePoolAutoscalingArgsBuilder 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. "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 reduces preemption risk for Spot VMs.
     */
    @JvmName("kegbhdcjcdpsacnr")
    public suspend fun locationPolicy(`value`: Output) {
        this.locationPolicy = value
    }

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

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

    /**
     * @param value Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits.
     */
    @JvmName("jardubsuynegbmps")
    public suspend fun totalMaxNodeCount(`value`: Output) {
        this.totalMaxNodeCount = value
    }

    /**
     * @param value Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits.
     */
    @JvmName("rjtbxvpedqgascrv")
    public suspend fun totalMinNodeCount(`value`: Output) {
        this.totalMinNodeCount = value
    }

    /**
     * @param value Location policy specifies the algorithm used when scaling-up the node pool. "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 reduces preemption risk for Spot VMs.
     */
    @JvmName("tdmfdfdvywxcqvct")
    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 node pool. Must be >= min_node_count. Cannot be used with total limits.
     */
    @JvmName("yggvboagovsowjfi")
    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 node pool. Must be >=0 and <= max_node_count. Cannot be used with total limits.
     */
    @JvmName("bqijkrcfmqccmosc")
    public suspend fun minNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minNodeCount = mapped
    }

    /**
     * @param value Maximum number of all nodes in the node pool. Must be >= total_min_node_count. Cannot be used with per zone limits.
     */
    @JvmName("pywunqesevjtyrdj")
    public suspend fun totalMaxNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMaxNodeCount = mapped
    }

    /**
     * @param value Minimum number of all nodes in the node pool. Must be >=0 and <= total_max_node_count. Cannot be used with per zone limits.
     */
    @JvmName("wwivlvsxamqwyrla")
    public suspend fun totalMinNodeCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.totalMinNodeCount = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy