![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.cdn.kotlin.inputs.ManagedRuleSetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.cdn.kotlin.inputs
import com.pulumi.azurenative.cdn.inputs.ManagedRuleSetArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Defines a managed rule set.
* @property anomalyScore Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
* @property ruleGroupOverrides Defines the rule overrides to apply to the rule set.
* @property ruleSetType Defines the rule set type to use.
* @property ruleSetVersion Defines the version of the rule set to use.
*/
public data class ManagedRuleSetArgs(
public val anomalyScore: Output? = null,
public val ruleGroupOverrides: Output>? = null,
public val ruleSetType: Output,
public val ruleSetVersion: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.cdn.inputs.ManagedRuleSetArgs =
com.pulumi.azurenative.cdn.inputs.ManagedRuleSetArgs.builder()
.anomalyScore(anomalyScore?.applyValue({ args0 -> args0 }))
.ruleGroupOverrides(
ruleGroupOverrides?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.ruleSetType(ruleSetType.applyValue({ args0 -> args0 }))
.ruleSetVersion(ruleSetVersion.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ManagedRuleSetArgs].
*/
@PulumiTagMarker
public class ManagedRuleSetArgsBuilder internal constructor() {
private var anomalyScore: Output? = null
private var ruleGroupOverrides: Output>? = null
private var ruleSetType: Output? = null
private var ruleSetVersion: Output? = null
/**
* @param value Verizon only : If the rule set supports anomaly detection mode, this describes the threshold for blocking requests.
*/
@JvmName("bniwwnhrqqreiarh")
public suspend fun anomalyScore(`value`: Output) {
this.anomalyScore = value
}
/**
* @param value Defines the rule overrides to apply to the rule set.
*/
@JvmName("eutqfhirvnmfvisg")
public suspend fun ruleGroupOverrides(`value`: Output>) {
this.ruleGroupOverrides = value
}
@JvmName("nqkxtqyjlwtpnhnp")
public suspend fun ruleGroupOverrides(vararg values: Output) {
this.ruleGroupOverrides = Output.all(values.asList())
}
/**
* @param values Defines the rule overrides to apply to the rule set.
*/
@JvmName("lcopbarxmrtmstxm")
public suspend fun ruleGroupOverrides(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy