
com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterWorkloadAutoscalerProfileArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.containerservice.kotlin.inputs
import com.pulumi.azure.containerservice.inputs.KubernetesClusterWorkloadAutoscalerProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property kedaEnabled Specifies whether KEDA Autoscaler can be used for workloads.
* @property verticalPodAutoscalerControlledValues Which resources values should be controlled.
* @property verticalPodAutoscalerEnabled Specifies whether Vertical Pod Autoscaler should be enabled.
* > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/AKS-VPAPreview` is enabled and the Resource Provider is re-registered, see the documentation for more information.
* @property verticalPodAutoscalerUpdateMode How the autoscaler applies changes to pod resources.
*/
public data class KubernetesClusterWorkloadAutoscalerProfileArgs(
public val kedaEnabled: Output? = null,
public val verticalPodAutoscalerControlledValues: Output? = null,
public val verticalPodAutoscalerEnabled: Output? = null,
public val verticalPodAutoscalerUpdateMode: Output? = null,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.containerservice.inputs.KubernetesClusterWorkloadAutoscalerProfileArgs =
com.pulumi.azure.containerservice.inputs.KubernetesClusterWorkloadAutoscalerProfileArgs.builder()
.kedaEnabled(kedaEnabled?.applyValue({ args0 -> args0 }))
.verticalPodAutoscalerControlledValues(
verticalPodAutoscalerControlledValues?.applyValue({ args0 ->
args0
}),
)
.verticalPodAutoscalerEnabled(verticalPodAutoscalerEnabled?.applyValue({ args0 -> args0 }))
.verticalPodAutoscalerUpdateMode(
verticalPodAutoscalerUpdateMode?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [KubernetesClusterWorkloadAutoscalerProfileArgs].
*/
@PulumiTagMarker
public class KubernetesClusterWorkloadAutoscalerProfileArgsBuilder internal constructor() {
private var kedaEnabled: Output? = null
private var verticalPodAutoscalerControlledValues: Output? = null
private var verticalPodAutoscalerEnabled: Output? = null
private var verticalPodAutoscalerUpdateMode: Output? = null
/**
* @param value Specifies whether KEDA Autoscaler can be used for workloads.
*/
@JvmName("fdcvrwjjugumascq")
public suspend fun kedaEnabled(`value`: Output) {
this.kedaEnabled = value
}
/**
* @param value Which resources values should be controlled.
*/
@JvmName("maonciiyfysqfrbp")
public suspend fun verticalPodAutoscalerControlledValues(`value`: Output) {
this.verticalPodAutoscalerControlledValues = value
}
/**
* @param value Specifies whether Vertical Pod Autoscaler should be enabled.
* > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/AKS-VPAPreview` is enabled and the Resource Provider is re-registered, see the documentation for more information.
*/
@JvmName("bfocugnwbmefkbkp")
public suspend fun verticalPodAutoscalerEnabled(`value`: Output) {
this.verticalPodAutoscalerEnabled = value
}
/**
* @param value How the autoscaler applies changes to pod resources.
*/
@JvmName("begjtsiolgbnlsyq")
public suspend fun verticalPodAutoscalerUpdateMode(`value`: Output) {
this.verticalPodAutoscalerUpdateMode = value
}
/**
* @param value Specifies whether KEDA Autoscaler can be used for workloads.
*/
@JvmName("pkeyeclfedaiuedo")
public suspend fun kedaEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.kedaEnabled = mapped
}
/**
* @param value Which resources values should be controlled.
*/
@JvmName("jhktwpqcoogetjuw")
public suspend fun verticalPodAutoscalerControlledValues(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.verticalPodAutoscalerControlledValues = mapped
}
/**
* @param value Specifies whether Vertical Pod Autoscaler should be enabled.
* > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/AKS-VPAPreview` is enabled and the Resource Provider is re-registered, see the documentation for more information.
*/
@JvmName("yrivtjktirkebcwc")
public suspend fun verticalPodAutoscalerEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.verticalPodAutoscalerEnabled = mapped
}
/**
* @param value How the autoscaler applies changes to pod resources.
*/
@JvmName("xtwtugcopxkxdacs")
public suspend fun verticalPodAutoscalerUpdateMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.verticalPodAutoscalerUpdateMode = mapped
}
internal fun build(): KubernetesClusterWorkloadAutoscalerProfileArgs =
KubernetesClusterWorkloadAutoscalerProfileArgs(
kedaEnabled = kedaEnabled,
verticalPodAutoscalerControlledValues = verticalPodAutoscalerControlledValues,
verticalPodAutoscalerEnabled = verticalPodAutoscalerEnabled,
verticalPodAutoscalerUpdateMode = verticalPodAutoscalerUpdateMode,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy