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

com.pulumi.aws.opsworks.kotlin.inputs.MysqlLayerLoadBasedAutoScalingUpscalingArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin.inputs

import com.pulumi.aws.opsworks.inputs.MysqlLayerLoadBasedAutoScalingUpscalingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Double
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property alarms
 * @property cpuThreshold
 * @property ignoreMetricsTime
 * @property instanceCount
 * @property loadThreshold
 * @property memoryThreshold
 * @property thresholdsWaitTime
 */
public data class MysqlLayerLoadBasedAutoScalingUpscalingArgs(
    public val alarms: Output>? = null,
    public val cpuThreshold: Output? = null,
    public val ignoreMetricsTime: Output? = null,
    public val instanceCount: Output? = null,
    public val loadThreshold: Output? = null,
    public val memoryThreshold: Output? = null,
    public val thresholdsWaitTime: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.inputs.MysqlLayerLoadBasedAutoScalingUpscalingArgs = com.pulumi.aws.opsworks.inputs.MysqlLayerLoadBasedAutoScalingUpscalingArgs.builder()
        .alarms(alarms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
        .cpuThreshold(cpuThreshold?.applyValue({ args0 -> args0 }))
        .ignoreMetricsTime(ignoreMetricsTime?.applyValue({ args0 -> args0 }))
        .instanceCount(instanceCount?.applyValue({ args0 -> args0 }))
        .loadThreshold(loadThreshold?.applyValue({ args0 -> args0 }))
        .memoryThreshold(memoryThreshold?.applyValue({ args0 -> args0 }))
        .thresholdsWaitTime(thresholdsWaitTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [MysqlLayerLoadBasedAutoScalingUpscalingArgs].
 */
@PulumiTagMarker
public class MysqlLayerLoadBasedAutoScalingUpscalingArgsBuilder internal constructor() {
    private var alarms: Output>? = null

    private var cpuThreshold: Output? = null

    private var ignoreMetricsTime: Output? = null

    private var instanceCount: Output? = null

    private var loadThreshold: Output? = null

    private var memoryThreshold: Output? = null

    private var thresholdsWaitTime: Output? = null

    /**
     * @param value
     */
    @JvmName("womkhdhqjstytuah")
    public suspend fun alarms(`value`: Output>) {
        this.alarms = value
    }

    @JvmName("avdxwtmfwenxrvuh")
    public suspend fun alarms(vararg values: Output) {
        this.alarms = Output.all(values.asList())
    }

    /**
     * @param values
     */
    @JvmName("xfeahibnoxyfhnph")
    public suspend fun alarms(values: List>) {
        this.alarms = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("kaeveycvhfvbhnnv")
    public suspend fun cpuThreshold(`value`: Output) {
        this.cpuThreshold = value
    }

    /**
     * @param value
     */
    @JvmName("gceuxgknyfnxfspy")
    public suspend fun ignoreMetricsTime(`value`: Output) {
        this.ignoreMetricsTime = value
    }

    /**
     * @param value
     */
    @JvmName("ymaqnmgjafbdkttu")
    public suspend fun instanceCount(`value`: Output) {
        this.instanceCount = value
    }

    /**
     * @param value
     */
    @JvmName("emomjbcvqmpxhwhf")
    public suspend fun loadThreshold(`value`: Output) {
        this.loadThreshold = value
    }

    /**
     * @param value
     */
    @JvmName("iyqyrrglgpxkpoqe")
    public suspend fun memoryThreshold(`value`: Output) {
        this.memoryThreshold = value
    }

    /**
     * @param value
     */
    @JvmName("wxnfwvsqfquwsceb")
    public suspend fun thresholdsWaitTime(`value`: Output) {
        this.thresholdsWaitTime = value
    }

    /**
     * @param value
     */
    @JvmName("oaqsxnxfymfeuhib")
    public suspend fun alarms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param values
     */
    @JvmName("pxhmlsqcwfwlmpgl")
    public suspend fun alarms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param value
     */
    @JvmName("ehhhwpotjxriydre")
    public suspend fun cpuThreshold(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.cpuThreshold = mapped
    }

    /**
     * @param value
     */
    @JvmName("njpisdxcnuhqgdbq")
    public suspend fun ignoreMetricsTime(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignoreMetricsTime = mapped
    }

    /**
     * @param value
     */
    @JvmName("bwvjgpwmitbqddpq")
    public suspend fun instanceCount(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.instanceCount = mapped
    }

    /**
     * @param value
     */
    @JvmName("kyxskoutgwtmncqc")
    public suspend fun loadThreshold(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadThreshold = mapped
    }

    /**
     * @param value
     */
    @JvmName("eweocfxeotptvvti")
    public suspend fun memoryThreshold(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.memoryThreshold = mapped
    }

    /**
     * @param value
     */
    @JvmName("wwilrfflrkdajeio")
    public suspend fun thresholdsWaitTime(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.thresholdsWaitTime = mapped
    }

    internal fun build(): MysqlLayerLoadBasedAutoScalingUpscalingArgs =
        MysqlLayerLoadBasedAutoScalingUpscalingArgs(
            alarms = alarms,
            cpuThreshold = cpuThreshold,
            ignoreMetricsTime = ignoreMetricsTime,
            instanceCount = instanceCount,
            loadThreshold = loadThreshold,
            memoryThreshold = memoryThreshold,
            thresholdsWaitTime = thresholdsWaitTime,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy