
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorFirewallPolicyManagedRuleOverrideRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.cdn.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @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 FrontdoorFirewallPolicyManagedRuleOverrideRule(
public val action: String,
public val enabled: Boolean? = null,
public val exclusions: List? = null,
public val ruleId: String,
) {
public companion object {
public
fun toKotlin(javaType: com.pulumi.azure.cdn.outputs.FrontdoorFirewallPolicyManagedRuleOverrideRule):
FrontdoorFirewallPolicyManagedRuleOverrideRule =
FrontdoorFirewallPolicyManagedRuleOverrideRule(
action = javaType.action(),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
exclusions = javaType.exclusions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.cdn.kotlin.outputs.FrontdoorFirewallPolicyManagedRuleOverrideRuleExclusion.Companion.toKotlin(args0)
})
}),
ruleId = javaType.ruleId(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy