com.pulumi.gcp.compute.kotlin.inputs.NodeGroupAutoscalingPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.NodeGroupAutoscalingPolicyArgs.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 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 NodeGroupAutoscalingPolicyArgs(
public val maxNodes: Output? = null,
public val minNodes: Output? = null,
public val mode: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.NodeGroupAutoscalingPolicyArgs =
com.pulumi.gcp.compute.inputs.NodeGroupAutoscalingPolicyArgs.builder()
.maxNodes(maxNodes?.applyValue({ args0 -> args0 }))
.minNodes(minNodes?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NodeGroupAutoscalingPolicyArgs].
*/
@PulumiTagMarker
public class NodeGroupAutoscalingPolicyArgsBuilder internal constructor() {
private var maxNodes: Output? = null
private var minNodes: Output? = null
private var mode: Output? = null
/**
* @param value Maximum size of the node group. Set to a value less than or equal
* to 100 and greater than or equal to min-nodes.
*/
@JvmName("xnllrrukitextqvm")
public suspend fun maxNodes(`value`: Output) {
this.maxNodes = value
}
/**
* @param value Minimum size of the node group. Must be less
* than or equal to max-nodes. The default value is 0.
*/
@JvmName("txmjpgiclxjenwss")
public suspend fun minNodes(`value`: Output) {
this.minNodes = value
}
/**
* @param value 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`.
*/
@JvmName("oxfubcmkmiqertho")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value Maximum size of the node group. Set to a value less than or equal
* to 100 and greater than or equal to min-nodes.
*/
@JvmName("sltcbtilpirapudt")
public suspend fun maxNodes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxNodes = mapped
}
/**
* @param value Minimum size of the node group. Must be less
* than or equal to max-nodes. The default value is 0.
*/
@JvmName("dprvdgqrvspbbatp")
public suspend fun minNodes(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minNodes = mapped
}
/**
* @param value 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`.
*/
@JvmName("xmnbkxyaqagwsrph")
public suspend fun mode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mode = mapped
}
internal fun build(): NodeGroupAutoscalingPolicyArgs = NodeGroupAutoscalingPolicyArgs(
maxNodes = maxNodes,
minNodes = minNodes,
mode = mode,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy