com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclRuleGroupReferenceStatementArgs.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.WebAclRuleGroupReferenceStatementArgs.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 arn The Amazon Resource Name (ARN) of the entity.
* @property excludedRules Rules in the referenced rule group whose actions are set to `Count` .
* > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
* @property ruleActionOverrides Action overrides for rules in the rule group.
*/
public data class WebAclRuleGroupReferenceStatementArgs(
public val arn: Output,
public val excludedRules: Output>? = null,
public val ruleActionOverrides: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclRuleGroupReferenceStatementArgs =
com.pulumi.awsnative.wafv2.inputs.WebAclRuleGroupReferenceStatementArgs.builder()
.arn(arn.applyValue({ args0 -> args0 }))
.excludedRules(
excludedRules?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.ruleActionOverrides(
ruleActionOverrides?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
).build()
}
/**
* Builder for [WebAclRuleGroupReferenceStatementArgs].
*/
@PulumiTagMarker
public class WebAclRuleGroupReferenceStatementArgsBuilder internal constructor() {
private var arn: Output? = null
private var excludedRules: Output>? = null
private var ruleActionOverrides: Output>? = null
/**
* @param value The Amazon Resource Name (ARN) of the entity.
*/
@JvmName("pucgjytkddqumgno")
public suspend fun arn(`value`: Output) {
this.arn = value
}
/**
* @param value Rules in the referenced rule group whose actions are set to `Count` .
* > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
*/
@JvmName("dvfxknlxyvqhldyq")
public suspend fun excludedRules(`value`: Output>) {
this.excludedRules = value
}
@JvmName("xspwiewnnhwinllc")
public suspend fun excludedRules(vararg values: Output) {
this.excludedRules = Output.all(values.asList())
}
/**
* @param values Rules in the referenced rule group whose actions are set to `Count` .
* > Instead of this option, use `RuleActionOverrides` . It accepts any valid action setting, including `Count` .
*/
@JvmName("ttmvlmanjjfadjkx")
public suspend fun excludedRules(values: List