![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.cdn.kotlin.inputs.FrontdoorFirewallPolicyManagedRuleArgs.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.FrontdoorFirewallPolicyManagedRuleArgs.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.collections.List
import kotlin.jvm.JvmName
/**
*
* @property action The action to perform for all DRS rules when the managed rule is matched or when the anomaly score is 5 or greater depending on which version of the DRS you are using. Possible values include `Allow`, `Log`, `Block`, and `Redirect`.
* @property exclusions One or more `exclusion` blocks as defined below.
* @property overrides One or more `override` blocks as defined below.
* @property type The name of the managed rule to use with this resource. Possible values include `DefaultRuleSet`, `Microsoft_DefaultRuleSet`, `BotProtection` or `Microsoft_BotManagerRuleSet`.
* @property version The version of the managed rule to use with this resource. Possible values depends on which DRS type you are using, for the `DefaultRuleSet` type the possible values include `1.0` or `preview-0.1`. For `Microsoft_DefaultRuleSet` the possible values include `1.1`, `2.0` or `2.1`. For `BotProtection` the value must be `preview-0.1` and for `Microsoft_BotManagerRuleSet` the value must be `1.0`.
*/
public data class FrontdoorFirewallPolicyManagedRuleArgs(
public val action: Output,
public val exclusions: Output>? = null,
public val overrides: Output>? = null,
public val type: Output,
public val version: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleArgs =
com.pulumi.azure.cdn.inputs.FrontdoorFirewallPolicyManagedRuleArgs.builder()
.action(action.applyValue({ args0 -> args0 }))
.exclusions(
exclusions?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.overrides(
overrides?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.type(type.applyValue({ args0 -> args0 }))
.version(version.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FrontdoorFirewallPolicyManagedRuleArgs].
*/
@PulumiTagMarker
public class FrontdoorFirewallPolicyManagedRuleArgsBuilder internal constructor() {
private var action: Output? = null
private var exclusions: Output>? = null
private var overrides: Output>? = null
private var type: Output? = null
private var version: Output? = null
/**
* @param value The action to perform for all DRS rules when the managed rule is matched or when the anomaly score is 5 or greater depending on which version of the DRS you are using. Possible values include `Allow`, `Log`, `Block`, and `Redirect`.
*/
@JvmName("vervtybpegswohan")
public suspend fun action(`value`: Output) {
this.action = value
}
/**
* @param value One or more `exclusion` blocks as defined below.
*/
@JvmName("yyivrnbnuqpnscft")
public suspend fun exclusions(`value`: Output>) {
this.exclusions = value
}
@JvmName("wjkpsdxaclfbkdxx")
public suspend fun exclusions(vararg values: Output) {
this.exclusions = Output.all(values.asList())
}
/**
* @param values One or more `exclusion` blocks as defined below.
*/
@JvmName("xmgthjkmsofffeei")
public suspend fun exclusions(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy