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

com.pulumi.gcp.compute.kotlin.outputs.NodeGroupAutoscalingPolicy.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.compute.kotlin.outputs

import kotlin.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property maxNodes Maximum size of the node group. Set to a value less than or equal
 * to 100 and greater than or equal to min-nodes.
 * @property minNodes Minimum size of the node group. Must be less
 * than or equal to max-nodes. The default value is 0.
 * @property mode The autoscaling mode. Set to one of the following:
 * - OFF: Disables the autoscaler.
 * - ON: Enables scaling in and scaling out.
 * - ONLY_SCALE_OUT: Enables only scaling out.
 * You must use this mode if your node groups are configured to
 * restart their hosted VMs on minimal servers.
 * Possible values are: `OFF`, `ON`, `ONLY_SCALE_OUT`.
 */
public data class NodeGroupAutoscalingPolicy(
    public val maxNodes: Int? = null,
    public val minNodes: Int? = null,
    public val mode: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.compute.outputs.NodeGroupAutoscalingPolicy): NodeGroupAutoscalingPolicy = NodeGroupAutoscalingPolicy(
            maxNodes = javaType.maxNodes().map({ args0 -> args0 }).orElse(null),
            minNodes = javaType.minNodes().map({ args0 -> args0 }).orElse(null),
            mode = javaType.mode().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy