com.pulumi.gcp.spanner.kotlin.inputs.InstanceAutoscalingConfigArgs.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.spanner.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property autoscalingLimits Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events. Users can define the minimum and
* maximum compute capacity allocated to the instance, and the autoscaler will
* only scale within that range. Users can either use nodes or processing
* units to specify the limits, but should use the same unit to set both the
* min_limit and max_limit.
* Structure is documented below.
* @property autoscalingTargets Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events
* Structure is documented below.
*/
public data class InstanceAutoscalingConfigArgs(
public val autoscalingLimits: Output? = null,
public val autoscalingTargets: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigArgs =
com.pulumi.gcp.spanner.inputs.InstanceAutoscalingConfigArgs.builder()
.autoscalingLimits(autoscalingLimits?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.autoscalingTargets(
autoscalingTargets?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [InstanceAutoscalingConfigArgs].
*/
@PulumiTagMarker
public class InstanceAutoscalingConfigArgsBuilder internal constructor() {
private var autoscalingLimits: Output? = null
private var autoscalingTargets: Output? = null
/**
* @param value Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events. Users can define the minimum and
* maximum compute capacity allocated to the instance, and the autoscaler will
* only scale within that range. Users can either use nodes or processing
* units to specify the limits, but should use the same unit to set both the
* min_limit and max_limit.
* Structure is documented below.
*/
@JvmName("fdocwauovymongug")
public suspend fun autoscalingLimits(`value`: Output) {
this.autoscalingLimits = value
}
/**
* @param value Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events
* Structure is documented below.
*/
@JvmName("mmonwhiethajwsvr")
public suspend fun autoscalingTargets(`value`: Output) {
this.autoscalingTargets = value
}
/**
* @param value Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events. Users can define the minimum and
* maximum compute capacity allocated to the instance, and the autoscaler will
* only scale within that range. Users can either use nodes or processing
* units to specify the limits, but should use the same unit to set both the
* min_limit and max_limit.
* Structure is documented below.
*/
@JvmName("nshltjtdvmotkwes")
public suspend fun autoscalingLimits(`value`: InstanceAutoscalingConfigAutoscalingLimitsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoscalingLimits = mapped
}
/**
* @param argument Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events. Users can define the minimum and
* maximum compute capacity allocated to the instance, and the autoscaler will
* only scale within that range. Users can either use nodes or processing
* units to specify the limits, but should use the same unit to set both the
* min_limit and max_limit.
* Structure is documented below.
*/
@JvmName("jvmjftantbiaxudm")
public suspend fun autoscalingLimits(argument: suspend InstanceAutoscalingConfigAutoscalingLimitsArgsBuilder.() -> Unit) {
val toBeMapped = InstanceAutoscalingConfigAutoscalingLimitsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.autoscalingLimits = mapped
}
/**
* @param value Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events
* Structure is documented below.
*/
@JvmName("hwnufpxlyfhbwdbt")
public suspend fun autoscalingTargets(`value`: InstanceAutoscalingConfigAutoscalingTargetsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.autoscalingTargets = mapped
}
/**
* @param argument Defines scale in controls to reduce the risk of response latency
* and outages due to abrupt scale-in events
* Structure is documented below.
*/
@JvmName("glrgfqwsinclstle")
public suspend fun autoscalingTargets(argument: suspend InstanceAutoscalingConfigAutoscalingTargetsArgsBuilder.() -> Unit) {
val toBeMapped = InstanceAutoscalingConfigAutoscalingTargetsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.autoscalingTargets = mapped
}
internal fun build(): InstanceAutoscalingConfigArgs = InstanceAutoscalingConfigArgs(
autoscalingLimits = autoscalingLimits,
autoscalingTargets = autoscalingTargets,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy