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

com.pulumi.awsnative.m2.kotlin.inputs.EnvironmentHighAvailabilityConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.m2.kotlin.inputs

import com.pulumi.awsnative.m2.inputs.EnvironmentHighAvailabilityConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
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

/**
 * Defines the details of a high availability configuration.
 * @property desiredCapacity The number of instances in a high availability configuration. The minimum possible value is 1 and the maximum is 100.
 */
public data class EnvironmentHighAvailabilityConfigArgs(
    public val desiredCapacity: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.m2.inputs.EnvironmentHighAvailabilityConfigArgs =
        com.pulumi.awsnative.m2.inputs.EnvironmentHighAvailabilityConfigArgs.builder()
            .desiredCapacity(desiredCapacity.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [EnvironmentHighAvailabilityConfigArgs].
 */
@PulumiTagMarker
public class EnvironmentHighAvailabilityConfigArgsBuilder internal constructor() {
    private var desiredCapacity: Output? = null

    /**
     * @param value The number of instances in a high availability configuration. The minimum possible value is 1 and the maximum is 100.
     */
    @JvmName("ydrmtlignmqlrtlb")
    public suspend fun desiredCapacity(`value`: Output) {
        this.desiredCapacity = value
    }

    /**
     * @param value The number of instances in a high availability configuration. The minimum possible value is 1 and the maximum is 100.
     */
    @JvmName("mojechlqcufoynev")
    public suspend fun desiredCapacity(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.desiredCapacity = mapped
    }

    internal fun build(): EnvironmentHighAvailabilityConfigArgs =
        EnvironmentHighAvailabilityConfigArgs(
            desiredCapacity = desiredCapacity ?: throw PulumiNullFieldException("desiredCapacity"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy