
com.pulumi.azure.frontdoor.kotlin.outputs.FirewallPolicyManagedRuleOverrideRule.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.frontdoor.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property action The action to be applied when the rule matches. Possible values are `Allow`, `Block`, `Log`, or `Redirect`.
* @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 FirewallPolicyManagedRuleOverrideRule(
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.frontdoor.outputs.FirewallPolicyManagedRuleOverrideRule): FirewallPolicyManagedRuleOverrideRule = FirewallPolicyManagedRuleOverrideRule(
action = javaType.action(),
enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
exclusions = javaType.exclusions().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.frontdoor.kotlin.outputs.FirewallPolicyManagedRuleOverrideRuleExclusion.Companion.toKotlin(args0)
})
}),
ruleId = javaType.ruleId(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy