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

com.pulumi.azure.appservice.kotlin.inputs.WindowsWebAppSiteConfigAutoHealSettingActionArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.appservice.kotlin.inputs

import com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property actionType Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`, `LogEvent`, and `CustomAction`.
 * @property customAction A `custom_action` block as defined below.
 * @property minimumProcessExecutionTime The minimum amount of time in `hh:mm:ss` the Windows Web App must have been running before the defined action will be run in the event of a trigger.
 */
public data class WindowsWebAppSiteConfigAutoHealSettingActionArgs(
    public val actionType: Output,
    public val customAction: Output? =
        null,
    public val minimumProcessExecutionTime: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingActionArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigAutoHealSettingActionArgs.builder()
            .actionType(actionType.applyValue({ args0 -> args0 }))
            .customAction(customAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .minimumProcessExecutionTime(minimumProcessExecutionTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsWebAppSiteConfigAutoHealSettingActionArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSiteConfigAutoHealSettingActionArgsBuilder internal constructor() {
    private var actionType: Output? = null

    private var customAction: Output? =
        null

    private var minimumProcessExecutionTime: Output? = null

    /**
     * @param value Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`, `LogEvent`, and `CustomAction`.
     */
    @JvmName("jmxbcswrugtdsoqq")
    public suspend fun actionType(`value`: Output) {
        this.actionType = value
    }

    /**
     * @param value A `custom_action` block as defined below.
     */
    @JvmName("dshfajesgvauybfn")
    public suspend
    fun customAction(`value`: Output) {
        this.customAction = value
    }

    /**
     * @param value The minimum amount of time in `hh:mm:ss` the Windows Web App must have been running before the defined action will be run in the event of a trigger.
     */
    @JvmName("exgcxhsxrjpmqpor")
    public suspend fun minimumProcessExecutionTime(`value`: Output) {
        this.minimumProcessExecutionTime = value
    }

    /**
     * @param value Predefined action to be taken to an Auto Heal trigger. Possible values include: `Recycle`, `LogEvent`, and `CustomAction`.
     */
    @JvmName("qxunmqdqsbvggvje")
    public suspend fun actionType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionType = mapped
    }

    /**
     * @param value A `custom_action` block as defined below.
     */
    @JvmName("kqdedmkuifsykuhs")
    public suspend
    fun customAction(`value`: WindowsWebAppSiteConfigAutoHealSettingActionCustomActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAction = mapped
    }

    /**
     * @param argument A `custom_action` block as defined below.
     */
    @JvmName("rsxiiugwdvhkgsap")
    public suspend
    fun customAction(argument: suspend WindowsWebAppSiteConfigAutoHealSettingActionCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            WindowsWebAppSiteConfigAutoHealSettingActionCustomActionArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.customAction = mapped
    }

    /**
     * @param value The minimum amount of time in `hh:mm:ss` the Windows Web App must have been running before the defined action will be run in the event of a trigger.
     */
    @JvmName("ashgqyfygjduxgav")
    public suspend fun minimumProcessExecutionTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumProcessExecutionTime = mapped
    }

    internal fun build(): WindowsWebAppSiteConfigAutoHealSettingActionArgs =
        WindowsWebAppSiteConfigAutoHealSettingActionArgs(
            actionType = actionType ?: throw PulumiNullFieldException("actionType"),
            customAction = customAction,
            minimumProcessExecutionTime = minimumProcessExecutionTime,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy