com.pulumi.gcp.appengine.kotlin.inputs.FlexibleAppVersionManualScalingArgs.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.FlexibleAppVersionManualScalingArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property instances Number of instances to assign to the service at the start.
* **Note:** When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
* Modules API set_num_instances() you must use `lifecycle.ignore_changes = ["manual_scaling"[0].instances]` to prevent drift detection.
*/
public data class FlexibleAppVersionManualScalingArgs(
public val instances: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.appengine.inputs.FlexibleAppVersionManualScalingArgs =
com.pulumi.gcp.appengine.inputs.FlexibleAppVersionManualScalingArgs.builder()
.instances(instances.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FlexibleAppVersionManualScalingArgs].
*/
@PulumiTagMarker
public class FlexibleAppVersionManualScalingArgsBuilder internal constructor() {
private var instances: Output? = null
/**
* @param value Number of instances to assign to the service at the start.
* **Note:** When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
* Modules API set_num_instances() you must use `lifecycle.ignore_changes = ["manual_scaling"[0].instances]` to prevent drift detection.
*/
@JvmName("mupmvfstjriwjbxn")
public suspend fun instances(`value`: Output) {
this.instances = value
}
/**
* @param value Number of instances to assign to the service at the start.
* **Note:** When managing the number of instances at runtime through the App Engine Admin API or the (now deprecated) Python 2
* Modules API set_num_instances() you must use `lifecycle.ignore_changes = ["manual_scaling"[0].instances]` to prevent drift detection.
*/
@JvmName("mbfffmbwlwxsbqxn")
public suspend fun instances(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.instances = mapped
}
internal fun build(): FlexibleAppVersionManualScalingArgs = FlexibleAppVersionManualScalingArgs(
instances = instances ?: throw PulumiNullFieldException("instances"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy