com.pulumi.gcp.spanner.kotlin.outputs.InstanceAutoscalingConfig.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.outputs
import kotlin.Suppress
/**
*
* @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 InstanceAutoscalingConfig(
public val autoscalingLimits: InstanceAutoscalingConfigAutoscalingLimits? = null,
public val autoscalingTargets: InstanceAutoscalingConfigAutoscalingTargets? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.spanner.outputs.InstanceAutoscalingConfig): InstanceAutoscalingConfig = InstanceAutoscalingConfig(
autoscalingLimits = javaType.autoscalingLimits().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.spanner.kotlin.outputs.InstanceAutoscalingConfigAutoscalingLimits.Companion.toKotlin(args0)
})
}).orElse(null),
autoscalingTargets = javaType.autoscalingTargets().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.spanner.kotlin.outputs.InstanceAutoscalingConfigAutoscalingTargets.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy