com.pulumi.alicloud.cs.kotlin.KubernetesAutoscalerArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-alicloud-kotlin Show documentation
Show all versions of pulumi-alicloud-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.alicloud.cs.kotlin
import com.pulumi.alicloud.cs.KubernetesAutoscalerArgs.builder
import com.pulumi.alicloud.cs.kotlin.inputs.KubernetesAutoscalerNodepoolArgs
import com.pulumi.alicloud.cs.kotlin.inputs.KubernetesAutoscalerNodepoolArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property clusterId The id of kubernetes cluster.
* @property coolDownDuration The cool_down_duration option of cluster-autoscaler.
* @property deferScaleInDuration The defer_scale_in_duration option of cluster-autoscaler.
* @property nodepools The list of the node pools. See `nodepools` below.
* @property useEcsRamRoleToken Enable autoscaler access to alibabacloud service by ecs ramrole token. default: false
* @property utilization The utilization option of cluster-autoscaler.
*/
public data class KubernetesAutoscalerArgs(
public val clusterId: Output? = null,
public val coolDownDuration: Output? = null,
public val deferScaleInDuration: Output? = null,
public val nodepools: Output>? = null,
public val useEcsRamRoleToken: Output? = null,
public val utilization: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.alicloud.cs.KubernetesAutoscalerArgs =
com.pulumi.alicloud.cs.KubernetesAutoscalerArgs.builder()
.clusterId(clusterId?.applyValue({ args0 -> args0 }))
.coolDownDuration(coolDownDuration?.applyValue({ args0 -> args0 }))
.deferScaleInDuration(deferScaleInDuration?.applyValue({ args0 -> args0 }))
.nodepools(
nodepools?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.useEcsRamRoleToken(useEcsRamRoleToken?.applyValue({ args0 -> args0 }))
.utilization(utilization?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [KubernetesAutoscalerArgs].
*/
@PulumiTagMarker
public class KubernetesAutoscalerArgsBuilder internal constructor() {
private var clusterId: Output? = null
private var coolDownDuration: Output? = null
private var deferScaleInDuration: Output? = null
private var nodepools: Output>? = null
private var useEcsRamRoleToken: Output? = null
private var utilization: Output? = null
/**
* @param value The id of kubernetes cluster.
*/
@JvmName("ehemgloktnqrnuwc")
public suspend fun clusterId(`value`: Output) {
this.clusterId = value
}
/**
* @param value The cool_down_duration option of cluster-autoscaler.
*/
@JvmName("tswqymewwwwstbje")
public suspend fun coolDownDuration(`value`: Output) {
this.coolDownDuration = value
}
/**
* @param value The defer_scale_in_duration option of cluster-autoscaler.
*/
@JvmName("evcbdgwfeywsaflc")
public suspend fun deferScaleInDuration(`value`: Output) {
this.deferScaleInDuration = value
}
/**
* @param value The list of the node pools. See `nodepools` below.
*/
@JvmName("hpnkuknagirxnmwh")
public suspend fun nodepools(`value`: Output>) {
this.nodepools = value
}
@JvmName("oavgaxcjdroayojv")
public suspend fun nodepools(vararg values: Output) {
this.nodepools = Output.all(values.asList())
}
/**
* @param values The list of the node pools. See `nodepools` below.
*/
@JvmName("xrgjxpyehtalmfna")
public suspend fun nodepools(values: List