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

com.pulumi.aws.opsworks.kotlin.inputs.HaproxyLayerLoadBasedAutoScalingDownscalingArgs.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.HaproxyLayerLoadBasedAutoScalingDownscalingArgs.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 HaproxyLayerLoadBasedAutoScalingDownscalingArgs(
    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.HaproxyLayerLoadBasedAutoScalingDownscalingArgs =
        com.pulumi.aws.opsworks.inputs.HaproxyLayerLoadBasedAutoScalingDownscalingArgs.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 [HaproxyLayerLoadBasedAutoScalingDownscalingArgs].
 */
@PulumiTagMarker
public class HaproxyLayerLoadBasedAutoScalingDownscalingArgsBuilder 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("gaeaplchikgyjgwe")
    public suspend fun alarms(`value`: Output>) {
        this.alarms = value
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy