com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionAutomaticScaling.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.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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 StandardAppVersionAutomaticScaling(
public val maxConcurrentRequests: Int? = null,
public val maxIdleInstances: Int? = null,
public val maxPendingLatency: String? = null,
public val minIdleInstances: Int? = null,
public val minPendingLatency: String? = null,
public val standardSchedulerSettings: StandardAppVersionAutomaticScalingStandardSchedulerSettings? =
null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.gcp.appengine.outputs.StandardAppVersionAutomaticScaling): StandardAppVersionAutomaticScaling = StandardAppVersionAutomaticScaling(
maxConcurrentRequests = javaType.maxConcurrentRequests().map({ args0 -> args0 }).orElse(null),
maxIdleInstances = javaType.maxIdleInstances().map({ args0 -> args0 }).orElse(null),
maxPendingLatency = javaType.maxPendingLatency().map({ args0 -> args0 }).orElse(null),
minIdleInstances = javaType.minIdleInstances().map({ args0 -> args0 }).orElse(null),
minPendingLatency = javaType.minPendingLatency().map({ args0 -> args0 }).orElse(null),
standardSchedulerSettings = javaType.standardSchedulerSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionAutomaticScalingStandardSchedulerSettings.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy