com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs.HPAScalingRulesPatchArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-kubernetes-kotlin Show documentation
Show all versions of pulumi-kubernetes-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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.kubernetes.autoscaling.v2beta2.kotlin.inputs
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 com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HPAScalingRulesPatchArgs.builder
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* HPAScalingRules configures the scaling behavior for one direction. These Rules are applied after calculating DesiredReplicas from metrics for the HPA. They can limit the scaling velocity by specifying scaling policies. They can prevent flapping by specifying the stabilization window, so that the number of replicas is not set instantly, instead, the safest value from the stabilization window is chosen.
* @property policies policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
* @property selectPolicy selectPolicy is used to specify which policy should be used. If not set, the default value MaxPolicySelect is used.
* @property stabilizationWindowSeconds StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: - For scale up: 0 (i.e. no stabilization is done). - For scale down: 300 (i.e. the stabilization window is 300 seconds long).
*/
public data class HPAScalingRulesPatchArgs(
public val policies: Output>? = null,
public val selectPolicy: Output? = null,
public val stabilizationWindowSeconds: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HPAScalingRulesPatchArgs =
com.pulumi.kubernetes.autoscaling.v2beta2.inputs.HPAScalingRulesPatchArgs.builder()
.policies(
policies?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.selectPolicy(selectPolicy?.applyValue({ args0 -> args0 }))
.stabilizationWindowSeconds(stabilizationWindowSeconds?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [HPAScalingRulesPatchArgs].
*/
@PulumiTagMarker
public class HPAScalingRulesPatchArgsBuilder internal constructor() {
private var policies: Output>? = null
private var selectPolicy: Output? = null
private var stabilizationWindowSeconds: Output? = null
/**
* @param value policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
*/
@JvmName("juexyjiirogsxebc")
public suspend fun policies(`value`: Output>) {
this.policies = value
}
@JvmName("orgdrgyneajgyqee")
public suspend fun policies(vararg values: Output) {
this.policies = Output.all(values.asList())
}
/**
* @param values policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid
*/
@JvmName("bgwcxcipjnbraryy")
public suspend fun policies(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy