All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.appengine.kotlin.outputs.StandardAppVersionAutomaticScalingStandardSchedulerSettings.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@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