![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.web.kotlin.inputs.AutoHealRulesArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin.inputs
import com.pulumi.azurenative.web.inputs.AutoHealRulesArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Rules that can be defined for auto-heal.
* @property actions Actions to be executed when a rule is triggered.
* @property triggers Conditions that describe when to execute the auto-heal actions.
*/
public data class AutoHealRulesArgs(
public val actions: Output? = null,
public val triggers: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.web.inputs.AutoHealRulesArgs =
com.pulumi.azurenative.web.inputs.AutoHealRulesArgs.builder()
.actions(actions?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.triggers(triggers?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [AutoHealRulesArgs].
*/
@PulumiTagMarker
public class AutoHealRulesArgsBuilder internal constructor() {
private var actions: Output? = null
private var triggers: Output? = null
/**
* @param value Actions to be executed when a rule is triggered.
*/
@JvmName("giuowpkbbhjeukuh")
public suspend fun actions(`value`: Output) {
this.actions = value
}
/**
* @param value Conditions that describe when to execute the auto-heal actions.
*/
@JvmName("kfkhxfsgtgmsdwjo")
public suspend fun triggers(`value`: Output) {
this.triggers = value
}
/**
* @param value Actions to be executed when a rule is triggered.
*/
@JvmName("jmxdniclwxbryvko")
public suspend fun actions(`value`: AutoHealActionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.actions = mapped
}
/**
* @param argument Actions to be executed when a rule is triggered.
*/
@JvmName("aeaacwhrvynpyrdg")
public suspend fun actions(argument: suspend AutoHealActionsArgsBuilder.() -> Unit) {
val toBeMapped = AutoHealActionsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.actions = mapped
}
/**
* @param value Conditions that describe when to execute the auto-heal actions.
*/
@JvmName("nqqnrhtnxixpodbp")
public suspend fun triggers(`value`: AutoHealTriggersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.triggers = mapped
}
/**
* @param argument Conditions that describe when to execute the auto-heal actions.
*/
@JvmName("tveijtnseghkhomb")
public suspend fun triggers(argument: suspend AutoHealTriggersArgsBuilder.() -> Unit) {
val toBeMapped = AutoHealTriggersArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.triggers = mapped
}
internal fun build(): AutoHealRulesArgs = AutoHealRulesArgs(
actions = actions,
triggers = triggers,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy