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

com.pulumi.awsnative.applicationautoscaling.kotlin.outputs.ScalableTargetSuspendedState.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.applicationautoscaling.kotlin.outputs

import kotlin.Boolean
import kotlin.Suppress

/**
 * ``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 ScalableTargetSuspendedState(
    public val dynamicScalingInSuspended: Boolean? = null,
    public val dynamicScalingOutSuspended: Boolean? = null,
    public val scheduledScalingSuspended: Boolean? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.applicationautoscaling.outputs.ScalableTargetSuspendedState): ScalableTargetSuspendedState = ScalableTargetSuspendedState(
            dynamicScalingInSuspended = javaType.dynamicScalingInSuspended().map({ args0 ->
                args0
            }).orElse(null),
            dynamicScalingOutSuspended = javaType.dynamicScalingOutSuspended().map({ args0 ->
                args0
            }).orElse(null),
            scheduledScalingSuspended = javaType.scheduledScalingSuspended().map({ args0 ->
                args0
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy