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

com.pulumi.aws.codedeploy.kotlin.inputs.DeploymentGroupAlarmConfigurationArgs.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.codedeploy.kotlin.inputs

import com.pulumi.aws.codedeploy.inputs.DeploymentGroupAlarmConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property alarms A list of alarms configured for the deployment group.
 * @property enabled Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.
 * @property ignorePollAlarmFailure Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is `false`.
 */
public data class DeploymentGroupAlarmConfigurationArgs(
    public val alarms: Output>? = null,
    public val enabled: Output? = null,
    public val ignorePollAlarmFailure: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.codedeploy.inputs.DeploymentGroupAlarmConfigurationArgs =
        com.pulumi.aws.codedeploy.inputs.DeploymentGroupAlarmConfigurationArgs.builder()
            .alarms(alarms?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .ignorePollAlarmFailure(ignorePollAlarmFailure?.applyValue({ args0 -> args0 })).build()
}

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

    private var enabled: Output? = null

    private var ignorePollAlarmFailure: Output? = null

    /**
     * @param value A list of alarms configured for the deployment group.
     */
    @JvmName("qubuvigbbcbqchhl")
    public suspend fun alarms(`value`: Output>) {
        this.alarms = value
    }

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

    /**
     * @param values A list of alarms configured for the deployment group.
     */
    @JvmName("fjkeqtdkihjrubjb")
    public suspend fun alarms(values: List>) {
        this.alarms = Output.all(values)
    }

    /**
     * @param value Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.
     */
    @JvmName("jnsdisefmbkctwlp")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is `false`.
     */
    @JvmName("opmbyxkkpkbvabau")
    public suspend fun ignorePollAlarmFailure(`value`: Output) {
        this.ignorePollAlarmFailure = value
    }

    /**
     * @param value A list of alarms configured for the deployment group.
     */
    @JvmName("hnluwnthcqwlcfnb")
    public suspend fun alarms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param values A list of alarms configured for the deployment group.
     */
    @JvmName("itatewbvvmnmeaqg")
    public suspend fun alarms(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alarms = mapped
    }

    /**
     * @param value Indicates whether the alarm configuration is enabled. This option is useful when you want to temporarily deactivate alarm monitoring for a deployment group without having to add the same alarms again later.
     */
    @JvmName("vaarobywrielmrrk")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Indicates whether a deployment should continue if information about the current state of alarms cannot be retrieved from CloudWatch. The default value is `false`.
     */
    @JvmName("tahlvcuetpdhfuos")
    public suspend fun ignorePollAlarmFailure(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ignorePollAlarmFailure = mapped
    }

    internal fun build(): DeploymentGroupAlarmConfigurationArgs =
        DeploymentGroupAlarmConfigurationArgs(
            alarms = alarms,
            enabled = enabled,
            ignorePollAlarmFailure = ignorePollAlarmFailure,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy