com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionAutomaticScalingStandardSchedulerSettings.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.appengine.kotlin.outputs
import kotlin.Double
import kotlin.Int
import kotlin.Suppress
/**
*
* @property maxInstances Maximum number of instances to run for this version. Set to zero to disable maxInstances configuration.
* @property minInstances Minimum number of instances to run for this version. Set to zero to disable minInstances configuration.
* @property targetCpuUtilization Target CPU utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
* @property targetThroughputUtilization Target throughput utilization ratio to maintain when scaling. Should be a value in the range [0.50, 0.95], zero, or a negative value.
*/
public data class StandardAppVersionAutomaticScalingStandardSchedulerSettings(
public val maxInstances: Int? = null,
public val minInstances: Int? = null,
public val targetCpuUtilization: Double? = null,
public val targetThroughputUtilization: Double? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.StandardAppVersionAutomaticScalingStandardSchedulerSettings): StandardAppVersionAutomaticScalingStandardSchedulerSettings =
StandardAppVersionAutomaticScalingStandardSchedulerSettings(
maxInstances = javaType.maxInstances().map({ args0 -> args0 }).orElse(null),
minInstances = javaType.minInstances().map({ args0 -> args0 }).orElse(null),
targetCpuUtilization = javaType.targetCpuUtilization().map({ args0 -> args0 }).orElse(null),
targetThroughputUtilization = javaType.targetThroughputUtilization().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy