com.pulumi.azure.cdn.kotlin.inputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.cdn.kotlin.inputs
import com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property action The action to be applied when the managed rule matches or when the anomaly score is 5 or greater. Possible values for DRS `1.1` and below are `Allow`, `Log`, `Block`, and `Redirect`. For DRS `2.0` and above the possible values are `Log` or `AnomalyScoring`.
* ->**NOTE:** Please see the DRS [product documentation](https://learn.microsoft.com/azure/web-application-firewall/afds/waf-front-door-drs?tabs=drs20#anomaly-scoring-mode) for more information.
* @property enabled Is the managed rule override enabled or disabled. Defaults to `false`
* @property exclusions One or more `exclusion` blocks as defined below.
* @property ruleId Identifier for the managed rule.
*/
public data class FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs(
public val action: Output,
public val enabled: Output? = null,
public val exclusions: Output>? =
null,
public val ruleId: Output,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs =
com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs.builder()
.action(action.applyValue({ args0 -> args0 }))
.enabled(enabled?.applyValue({ args0 -> args0 }))
.exclusions(
exclusions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.ruleId(ruleId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FrontdoorFirewallPolicyManagedRuleOverrideRuleArgs].
*/
@PulumiTagMarker
public class FrontdoorFirewallPolicyManagedRuleOverrideRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var enabled: Output? = null
private var exclusions: Output>? =
null
private var ruleId: Output? = null
/**
* @param value The action to be applied when the managed rule matches or when the anomaly score is 5 or greater. Possible values for DRS `1.1` and below are `Allow`, `Log`, `Block`, and `Redirect`. For DRS `2.0` and above the possible values are `Log` or `AnomalyScoring`.
* ->**NOTE:** Please see the DRS [product documentation](https://learn.microsoft.com/azure/web-application-firewall/afds/waf-front-door-drs?tabs=drs20#anomaly-scoring-mode) for more information.
*/
@JvmName("ugbiwkqxsldqkvlw")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value Is the managed rule override enabled or disabled. Defaults to `false`
*/
@JvmName("qojfknrpbxigeepx")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value One or more `exclusion` blocks as defined below.
*/
@JvmName("duixpgjgauxcjtim")
public suspend
fun exclusions(`value`: Output>) {
this.exclusions = value
}
@JvmName("abmtpniosndetsof")
public suspend fun exclusions(
vararg
values: Output,
) {
this.exclusions = Output.all(values.asList())
}
/**
* @param values One or more `exclusion` blocks as defined below.
*/
@JvmName("bhhgdmcmafyvmmda")
public suspend
fun exclusions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy