com.pulumi.awsnative.applicationautoscaling.kotlin.inputs.ScalableTargetSuspendedStateArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.applicationautoscaling.kotlin.inputs
import com.pulumi.awsnative.applicationautoscaling.inputs.ScalableTargetSuspendedStateArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* ``SuspendedState`` is a property of the [AWS::ApplicationAutoScaling::ScalableTarget](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-applicationautoscaling-scalabletarget.html) resource that specifies whether the scaling activities for a scalable target are in a suspended state.
* For more information, see [Suspending and resuming scaling](https://docs.aws.amazon.com/autoscaling/application/userguide/application-auto-scaling-suspend-resume-scaling.html) in the *Application Auto Scaling User Guide*.
* @property dynamicScalingInSuspended Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is ``false``.
* @property dynamicScalingOutSuspended Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is ``false``.
* @property scheduledScalingSuspended Whether scheduled scaling is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is ``false``.
*/
public data class ScalableTargetSuspendedStateArgs(
public val dynamicScalingInSuspended: Output? = null,
public val dynamicScalingOutSuspended: Output? = null,
public val scheduledScalingSuspended: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.applicationautoscaling.inputs.ScalableTargetSuspendedStateArgs =
com.pulumi.awsnative.applicationautoscaling.inputs.ScalableTargetSuspendedStateArgs.builder()
.dynamicScalingInSuspended(dynamicScalingInSuspended?.applyValue({ args0 -> args0 }))
.dynamicScalingOutSuspended(dynamicScalingOutSuspended?.applyValue({ args0 -> args0 }))
.scheduledScalingSuspended(scheduledScalingSuspended?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ScalableTargetSuspendedStateArgs].
*/
@PulumiTagMarker
public class ScalableTargetSuspendedStateArgsBuilder internal constructor() {
private var dynamicScalingInSuspended: Output? = null
private var dynamicScalingOutSuspended: Output? = null
private var scheduledScalingSuspended: Output? = null
/**
* @param value Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is ``false``.
*/
@JvmName("sntukgkrnwjbjbqa")
public suspend fun dynamicScalingInSuspended(`value`: Output) {
this.dynamicScalingInSuspended = value
}
/**
* @param value Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is ``false``.
*/
@JvmName("bicjilpivcmddrew")
public suspend fun dynamicScalingOutSuspended(`value`: Output) {
this.dynamicScalingOutSuspended = value
}
/**
* @param value Whether scheduled scaling is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is ``false``.
*/
@JvmName("gobhneoyihrbqhms")
public suspend fun scheduledScalingSuspended(`value`: Output) {
this.scheduledScalingSuspended = value
}
/**
* @param value Whether scale in by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is ``false``.
*/
@JvmName("uahnswlrhhiaihyb")
public suspend fun dynamicScalingInSuspended(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dynamicScalingInSuspended = mapped
}
/**
* @param value Whether scale out by a target tracking scaling policy or a step scaling policy is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is ``false``.
*/
@JvmName("oavakyvhmrdvwikp")
public suspend fun dynamicScalingOutSuspended(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dynamicScalingOutSuspended = mapped
}
/**
* @param value Whether scheduled scaling is suspended. Set the value to ``true`` if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is ``false``.
*/
@JvmName("pnnpieekaekirgpf")
public suspend fun scheduledScalingSuspended(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.scheduledScalingSuspended = mapped
}
internal fun build(): ScalableTargetSuspendedStateArgs = ScalableTargetSuspendedStateArgs(
dynamicScalingInSuspended = dynamicScalingInSuspended,
dynamicScalingOutSuspended = dynamicScalingOutSuspended,
scheduledScalingSuspended = scheduledScalingSuspended,
)
}