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

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

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

import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property id
 * @property maxCapacity The maximum value that you plan to scale out to. When a scaling policy is in effect, Application Auto Scaling can scale out (expand) as needed to the maximum capacity limit in response to changing demand.
 * @property minCapacity The minimum value that you plan to scale in to. When a scaling policy is in effect, Application Auto Scaling can scale in (contract) as needed to the minimum capacity limit in response to changing demand.
 * @property scheduledActions The scheduled actions for the scalable target. Duplicates aren't allowed.
 * @property suspendedState An embedded object that contains attributes and attribute values that are used to suspend and resume automatic scaling. Setting the value of an attribute to ``true`` suspends the specified scaling activities. Setting it to ``false`` (default) resumes the specified scaling activities.
 *   *Suspension Outcomes*
 *   +  For ``DynamicScalingInSuspended``, while a suspension is in effect, all scale-in activities that are triggered by a scaling policy are suspended.
 *   +  For ``DynamicScalingOutSuspended``, while a suspension is in effect, all scale-out activities that are triggered by a scaling policy are suspended.
 *   +  For ``ScheduledScalingSuspended``, while a suspension is in effect, all scaling activities that involve scheduled actions are suspended.
 */
public data class GetScalableTargetResult(
    public val id: String? = null,
    public val maxCapacity: Int? = null,
    public val minCapacity: Int? = null,
    public val scheduledActions: List? = null,
    public val suspendedState: ScalableTargetSuspendedState? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.applicationautoscaling.outputs.GetScalableTargetResult): GetScalableTargetResult = GetScalableTargetResult(
            id = javaType.id().map({ args0 -> args0 }).orElse(null),
            maxCapacity = javaType.maxCapacity().map({ args0 -> args0 }).orElse(null),
            minCapacity = javaType.minCapacity().map({ args0 -> args0 }).orElse(null),
            scheduledActions = javaType.scheduledActions().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.applicationautoscaling.kotlin.outputs.ScalableTargetScheduledAction.Companion.toKotlin(args0)
                })
            }),
            suspendedState = javaType.suspendedState().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.applicationautoscaling.kotlin.outputs.ScalableTargetSuspendedState.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy