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

com.pulumi.azure.waf.kotlin.inputs.PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs.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.waf.kotlin.inputs

import com.pulumi.azure.waf.inputs.PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property action Describes the override action to be applied when rule matches. Possible values are `Allow`, `AnomalyScoring`, `Block`, `JSChallenge` and `Log`. `JSChallenge` is only valid for rulesets of type `Microsoft_BotManagerRuleSet`.
 * @property enabled Describes if the managed rule is in enabled state or disabled state.
 * @property id Identifier for the managed rule.
 */
public data class PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs(
    public val action: Output? = null,
    public val enabled: Output? = null,
    public val id: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.waf.inputs.PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs =
        com.pulumi.azure.waf.inputs.PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs.builder()
            .action(action?.applyValue({ args0 -> args0 }))
            .enabled(enabled?.applyValue({ args0 -> args0 }))
            .id(id.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs].
 */
@PulumiTagMarker
public class PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgsBuilder internal constructor() {
    private var action: Output? = null

    private var enabled: Output? = null

    private var id: Output? = null

    /**
     * @param value Describes the override action to be applied when rule matches. Possible values are `Allow`, `AnomalyScoring`, `Block`, `JSChallenge` and `Log`. `JSChallenge` is only valid for rulesets of type `Microsoft_BotManagerRuleSet`.
     */
    @JvmName("uutongpftgiigsfs")
    public suspend fun action(`value`: Output) {
        this.action = value
    }

    /**
     * @param value Describes if the managed rule is in enabled state or disabled state.
     */
    @JvmName("lxrjfkcwhsrffnbf")
    public suspend fun enabled(`value`: Output) {
        this.enabled = value
    }

    /**
     * @param value Identifier for the managed rule.
     */
    @JvmName("ibpqomltaqlgmioq")
    public suspend fun id(`value`: Output) {
        this.id = value
    }

    /**
     * @param value Describes the override action to be applied when rule matches. Possible values are `Allow`, `AnomalyScoring`, `Block`, `JSChallenge` and `Log`. `JSChallenge` is only valid for rulesets of type `Microsoft_BotManagerRuleSet`.
     */
    @JvmName("iriqircrllxaeipi")
    public suspend fun action(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.action = mapped
    }

    /**
     * @param value Describes if the managed rule is in enabled state or disabled state.
     */
    @JvmName("gthdvlbrjfhrhjok")
    public suspend fun enabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enabled = mapped
    }

    /**
     * @param value Identifier for the managed rule.
     */
    @JvmName("cyeuodkqoegnquxl")
    public suspend fun id(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.id = mapped
    }

    internal fun build(): PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs =
        PolicyManagedRulesManagedRuleSetRuleGroupOverrideRuleArgs(
            action = action,
            enabled = enabled,
            id = id ?: throw PulumiNullFieldException("id"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy