com.pulumi.aws.opsworks.kotlin.inputs.EcsClusterLayerLoadBasedAutoScalingArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.opsworks.kotlin.inputs
import com.pulumi.aws.opsworks.inputs.EcsClusterLayerLoadBasedAutoScalingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property downscaling
* @property enable
* @property upscaling
*/
public data class EcsClusterLayerLoadBasedAutoScalingArgs(
public val downscaling: Output? = null,
public val enable: Output? = null,
public val upscaling: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.opsworks.inputs.EcsClusterLayerLoadBasedAutoScalingArgs =
com.pulumi.aws.opsworks.inputs.EcsClusterLayerLoadBasedAutoScalingArgs.builder()
.downscaling(downscaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.enable(enable?.applyValue({ args0 -> args0 }))
.upscaling(upscaling?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [EcsClusterLayerLoadBasedAutoScalingArgs].
*/
@PulumiTagMarker
public class EcsClusterLayerLoadBasedAutoScalingArgsBuilder internal constructor() {
private var downscaling: Output? = null
private var enable: Output? = null
private var upscaling: Output? = null
/**
* @param value
*/
@JvmName("xbclnjwbcyeolymf")
public suspend fun downscaling(`value`: Output) {
this.downscaling = value
}
/**
* @param value
*/
@JvmName("ylfkrvtagkitxoxs")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value
*/
@JvmName("dwiuqmnvtanrxrke")
public suspend fun upscaling(`value`: Output) {
this.upscaling = value
}
/**
* @param value
*/
@JvmName("kmifqyctiykjlowd")
public suspend fun downscaling(`value`: EcsClusterLayerLoadBasedAutoScalingDownscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.downscaling = mapped
}
/**
* @param argument
*/
@JvmName("wntgdqejdhbnewbe")
public suspend fun downscaling(argument: suspend EcsClusterLayerLoadBasedAutoScalingDownscalingArgsBuilder.() -> Unit) {
val toBeMapped = EcsClusterLayerLoadBasedAutoScalingDownscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.downscaling = mapped
}
/**
* @param value
*/
@JvmName("ysmnpiuamlejxeak")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
/**
* @param value
*/
@JvmName("lpeqioyyaessgdbo")
public suspend fun upscaling(`value`: EcsClusterLayerLoadBasedAutoScalingUpscalingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.upscaling = mapped
}
/**
* @param argument
*/
@JvmName("yrotswyjaslvehtq")
public suspend fun upscaling(argument: suspend EcsClusterLayerLoadBasedAutoScalingUpscalingArgsBuilder.() -> Unit) {
val toBeMapped = EcsClusterLayerLoadBasedAutoScalingUpscalingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.upscaling = mapped
}
internal fun build(): EcsClusterLayerLoadBasedAutoScalingArgs =
EcsClusterLayerLoadBasedAutoScalingArgs(
downscaling = downscaling,
enable = enable,
upscaling = upscaling,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy