com.pulumi.gcp.appengine.kotlin.inputs.StandardAppVersionAutomaticScalingArgs.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.StandardAppVersionAutomaticScalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property maxConcurrentRequests Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
* Defaults to a runtime-specific value.
* @property maxIdleInstances Maximum number of idle instances that should be maintained for this version.
* @property maxPendingLatency Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
* @property minIdleInstances Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
* @property minPendingLatency Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
* @property standardSchedulerSettings Scheduler settings for standard environment.
* Structure is documented below.
*/
public data class StandardAppVersionAutomaticScalingArgs(
public val maxConcurrentRequests: Output? = null,
public val maxIdleInstances: Output? = null,
public val maxPendingLatency: Output? = null,
public val minIdleInstances: Output? = null,
public val minPendingLatency: Output? = null,
public val standardSchedulerSettings: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.appengine.inputs.StandardAppVersionAutomaticScalingArgs =
com.pulumi.gcp.appengine.inputs.StandardAppVersionAutomaticScalingArgs.builder()
.maxConcurrentRequests(maxConcurrentRequests?.applyValue({ args0 -> args0 }))
.maxIdleInstances(maxIdleInstances?.applyValue({ args0 -> args0 }))
.maxPendingLatency(maxPendingLatency?.applyValue({ args0 -> args0 }))
.minIdleInstances(minIdleInstances?.applyValue({ args0 -> args0 }))
.minPendingLatency(minPendingLatency?.applyValue({ args0 -> args0 }))
.standardSchedulerSettings(
standardSchedulerSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [StandardAppVersionAutomaticScalingArgs].
*/
@PulumiTagMarker
public class StandardAppVersionAutomaticScalingArgsBuilder internal constructor() {
private var maxConcurrentRequests: Output? = null
private var maxIdleInstances: Output? = null
private var maxPendingLatency: Output? = null
private var minIdleInstances: Output? = null
private var minPendingLatency: Output? = null
private var standardSchedulerSettings:
Output? = null
/**
* @param value Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
* Defaults to a runtime-specific value.
*/
@JvmName("ljsyujokwspqycbt")
public suspend fun maxConcurrentRequests(`value`: Output) {
this.maxConcurrentRequests = value
}
/**
* @param value Maximum number of idle instances that should be maintained for this version.
*/
@JvmName("ifefcblwaujbpnmf")
public suspend fun maxIdleInstances(`value`: Output) {
this.maxIdleInstances = value
}
/**
* @param value Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("ryalqpvavrirocnp")
public suspend fun maxPendingLatency(`value`: Output) {
this.maxPendingLatency = value
}
/**
* @param value Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
*/
@JvmName("kpbvonernbxfvbxk")
public suspend fun minIdleInstances(`value`: Output) {
this.minIdleInstances = value
}
/**
* @param value Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("lcqldqdqpxbqyryc")
public suspend fun minPendingLatency(`value`: Output) {
this.minPendingLatency = value
}
/**
* @param value Scheduler settings for standard environment.
* Structure is documented below.
*/
@JvmName("jroegpushqueffpn")
public suspend fun standardSchedulerSettings(`value`: Output) {
this.standardSchedulerSettings = value
}
/**
* @param value Number of concurrent requests an automatic scaling instance can accept before the scheduler spawns a new instance.
* Defaults to a runtime-specific value.
*/
@JvmName("qlwiqlaikvygwpnp")
public suspend fun maxConcurrentRequests(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxConcurrentRequests = mapped
}
/**
* @param value Maximum number of idle instances that should be maintained for this version.
*/
@JvmName("gnahjswkaqqnmmnh")
public suspend fun maxIdleInstances(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxIdleInstances = mapped
}
/**
* @param value Maximum amount of time that a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("pjpntyspbtyoaufd")
public suspend fun maxPendingLatency(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.maxPendingLatency = mapped
}
/**
* @param value Minimum number of idle instances that should be maintained for this version. Only applicable for the default version of a service.
*/
@JvmName("onkgsnjgjseipngm")
public suspend fun minIdleInstances(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minIdleInstances = mapped
}
/**
* @param value Minimum amount of time a request should wait in the pending queue before starting a new instance to handle it.
* A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
*/
@JvmName("cegxqxpqytrfsygg")
public suspend fun minPendingLatency(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.minPendingLatency = mapped
}
/**
* @param value Scheduler settings for standard environment.
* Structure is documented below.
*/
@JvmName("luvlwoxeltgpjadx")
public suspend fun standardSchedulerSettings(`value`: StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.standardSchedulerSettings = mapped
}
/**
* @param argument Scheduler settings for standard environment.
* Structure is documented below.
*/
@JvmName("pufdnfmecsyhimli")
public suspend fun standardSchedulerSettings(argument: suspend StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgsBuilder.() -> Unit) {
val toBeMapped =
StandardAppVersionAutomaticScalingStandardSchedulerSettingsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.standardSchedulerSettings = mapped
}
internal fun build(): StandardAppVersionAutomaticScalingArgs =
StandardAppVersionAutomaticScalingArgs(
maxConcurrentRequests = maxConcurrentRequests,
maxIdleInstances = maxIdleInstances,
maxPendingLatency = maxPendingLatency,
minIdleInstances = minIdleInstances,
minPendingLatency = minPendingLatency,
standardSchedulerSettings = standardSchedulerSettings,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy