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

com.pulumi.aws.autoscaling.kotlin.inputs.GroupInstanceRefreshPreferencesAlarmSpecificationArgs.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.autoscaling.kotlin.inputs

import com.pulumi.aws.autoscaling.inputs.GroupInstanceRefreshPreferencesAlarmSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property alarms List of Cloudwatch alarms. If any of these alarms goes into ALARM state, Instance Refresh is failed.
 */
public data class GroupInstanceRefreshPreferencesAlarmSpecificationArgs(
    public val alarms: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.autoscaling.inputs.GroupInstanceRefreshPreferencesAlarmSpecificationArgs =
        com.pulumi.aws.autoscaling.inputs.GroupInstanceRefreshPreferencesAlarmSpecificationArgs.builder()
            .alarms(alarms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    /**
     * @param value List of Cloudwatch alarms. If any of these alarms goes into ALARM state, Instance Refresh is failed.
     */
    @JvmName("mnudwgfrnayqfjaw")
    public suspend fun alarms(`value`: Output>) {
        this.alarms = value
    }

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

    /**
     * @param values List of Cloudwatch alarms. If any of these alarms goes into ALARM state, Instance Refresh is failed.
     */
    @JvmName("floqaxtduwqshjuq")
    public suspend fun alarms(values: List>) {
        this.alarms = Output.all(values)
    }

    /**
     * @param value List of Cloudwatch alarms. If any of these alarms goes into ALARM state, Instance Refresh is failed.
     */
    @JvmName("enmwjwghrvawagsv")
    public suspend fun alarms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param values List of Cloudwatch alarms. If any of these alarms goes into ALARM state, Instance Refresh is failed.
     */
    @JvmName("vuvewjfsmdbcfhqs")
    public suspend fun alarms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    internal fun build(): GroupInstanceRefreshPreferencesAlarmSpecificationArgs =
        GroupInstanceRefreshPreferencesAlarmSpecificationArgs(
            alarms = alarms,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy