com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclOverrideActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-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.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.WebAclOverrideActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Any
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Override a RuleGroup or ManagedRuleGroup behavior. This can only be applied to Rule that has RuleGroupReferenceStatement or ManagedRuleGroupReferenceStatement.
* @property count Count traffic towards application.
* @property none Keep the RuleGroup or ManagedRuleGroup behavior as is.
*/
public data class WebAclOverrideActionArgs(
public val count: Output? = null,
public val none: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclOverrideActionArgs =
com.pulumi.awsnative.wafv2.inputs.WebAclOverrideActionArgs.builder()
.count(count?.applyValue({ args0 -> args0 }))
.none(none?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebAclOverrideActionArgs].
*/
@PulumiTagMarker
public class WebAclOverrideActionArgsBuilder internal constructor() {
private var count: Output? = null
private var none: Output? = null
/**
* @param value Count traffic towards application.
*/
@JvmName("syhyoxatufuqiska")
public suspend fun count(`value`: Output) {
this.count = value
}
/**
* @param value Keep the RuleGroup or ManagedRuleGroup behavior as is.
*/
@JvmName("gwcioucikdlblbwl")
public suspend fun none(`value`: Output) {
this.none = value
}
/**
* @param value Count traffic towards application.
*/
@JvmName("uuqrewrsuodkkdeb")
public suspend fun count(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.count = mapped
}
/**
* @param value Keep the RuleGroup or ManagedRuleGroup behavior as is.
*/
@JvmName("scvrrayfctrbragu")
public suspend fun none(`value`: Any?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.none = mapped
}
internal fun build(): WebAclOverrideActionArgs = WebAclOverrideActionArgs(
count = count,
none = none,
)
}