com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs.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.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property aggregationWindowLength Period of time over which CPU utilization is calculated.
* @property targetUtilization Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
*/
public data class FlexibleAppVersionAutomaticScalingCpuUtilizationArgs(
public val aggregationWindowLength: Output? = null,
public val targetUtilization: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs =
com.pulumi.gcp.appengine.inputs.FlexibleAppVersionAutomaticScalingCpuUtilizationArgs.builder()
.aggregationWindowLength(aggregationWindowLength?.applyValue({ args0 -> args0 }))
.targetUtilization(targetUtilization.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FlexibleAppVersionAutomaticScalingCpuUtilizationArgs].
*/
@PulumiTagMarker
public class FlexibleAppVersionAutomaticScalingCpuUtilizationArgsBuilder internal constructor() {
private var aggregationWindowLength: Output? = null
private var targetUtilization: Output? = null
/**
* @param value Period of time over which CPU utilization is calculated.
*/
@JvmName("knvgqpaplhkdfaxq")
public suspend fun aggregationWindowLength(`value`: Output) {
this.aggregationWindowLength = value
}
/**
* @param value Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
*/
@JvmName("ibckyswnujwuiuec")
public suspend fun targetUtilization(`value`: Output) {
this.targetUtilization = value
}
/**
* @param value Period of time over which CPU utilization is calculated.
*/
@JvmName("cdcjgxpyifbhvbvq")
public suspend fun aggregationWindowLength(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.aggregationWindowLength = mapped
}
/**
* @param value Target CPU utilization ratio to maintain when scaling. Must be between 0 and 1.
*/
@JvmName("mbsvdoelgjvaqmgo")
public suspend fun targetUtilization(`value`: Double) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.targetUtilization = mapped
}
internal fun build(): FlexibleAppVersionAutomaticScalingCpuUtilizationArgs =
FlexibleAppVersionAutomaticScalingCpuUtilizationArgs(
aggregationWindowLength = aggregationWindowLength,
targetUtilization = targetUtilization ?: throw PulumiNullFieldException("targetUtilization"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy