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

com.pulumi.gcp.appengine.kotlin.inputs.StandardAppVersionManualScalingArgs.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.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.appengine.inputs.StandardAppVersionManualScalingArgs.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 StandardAppVersionManualScalingArgs(
    public val instances: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.appengine.inputs.StandardAppVersionManualScalingArgs =
        com.pulumi.gcp.appengine.inputs.StandardAppVersionManualScalingArgs.builder()
            .instances(instances.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [StandardAppVersionManualScalingArgs].
 */
@PulumiTagMarker
public class StandardAppVersionManualScalingArgsBuilder 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("mxynjckkcuctvyfn")
    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("dfhqbsfvcdfaaroi")
    public suspend fun instances(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.instances = mapped
    }

    internal fun build(): StandardAppVersionManualScalingArgs = StandardAppVersionManualScalingArgs(
        instances = instances ?: throw PulumiNullFieldException("instances"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy