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

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

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

import com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionArgs.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 are `CustomAction`, `LogEvent` and `Recycle`.
 * @property customAction A `custom_action` block as defined below.
 * @property minimumProcessExecutionTime The minimum amount of time in `hh:mm:ss` the Windows Web App Slot must have been running before the defined action will be run in the event of a trigger.
 */
public data class WindowsWebAppSlotSiteConfigAutoHealSettingActionArgs(
    public val actionType: Output,
    public val customAction: Output? =
        null,
    public val minimumProcessExecutionTime: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionArgs =
        com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigAutoHealSettingActionArgs.builder()
            .actionType(actionType.applyValue({ args0 -> args0 }))
            .customAction(customAction?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .minimumProcessExecutionTime(minimumProcessExecutionTime?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [WindowsWebAppSlotSiteConfigAutoHealSettingActionArgs].
 */
@PulumiTagMarker
public class WindowsWebAppSlotSiteConfigAutoHealSettingActionArgsBuilder 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 are `CustomAction`, `LogEvent` and `Recycle`.
     */
    @JvmName("djgtxouiptafjbov")
    public suspend fun actionType(`value`: Output) {
        this.actionType = value
    }

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

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

    /**
     * @param value Predefined action to be taken to an Auto Heal trigger. Possible values are `CustomAction`, `LogEvent` and `Recycle`.
     */
    @JvmName("cdclidiopxsulilf")
    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("owopjpjsricoryxp")
    public suspend fun customAction(`value`: WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customAction = mapped
    }

    /**
     * @param argument A `custom_action` block as defined below.
     */
    @JvmName("kpbkjcideitvktnq")
    public suspend fun customAction(argument: suspend WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgsBuilder.() -> Unit) {
        val toBeMapped =
            WindowsWebAppSlotSiteConfigAutoHealSettingActionCustomActionArgsBuilder().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 Slot must have been running before the defined action will be run in the event of a trigger.
     */
    @JvmName("xnntcxjtmkybxccv")
    public suspend fun minimumProcessExecutionTime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.minimumProcessExecutionTime = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy