com.pulumi.aws.waf.kotlin.inputs.WebAclRuleActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.waf.kotlin.inputs
import com.pulumi.aws.waf.inputs.WebAclRuleActionArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property type valid values are: `BLOCK`, `ALLOW`, or `COUNT`
*/
public data class WebAclRuleActionArgs(
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.waf.inputs.WebAclRuleActionArgs =
com.pulumi.aws.waf.inputs.WebAclRuleActionArgs.builder()
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebAclRuleActionArgs].
*/
@PulumiTagMarker
public class WebAclRuleActionArgsBuilder internal constructor() {
private var type: Output? = null
/**
* @param value valid values are: `BLOCK`, `ALLOW`, or `COUNT`
*/
@JvmName("wyoqialllxarnyil")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value valid values are: `BLOCK`, `ALLOW`, or `COUNT`
*/
@JvmName("eyxtgaostywgiuwh")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): WebAclRuleActionArgs = WebAclRuleActionArgs(
type = type ?: throw PulumiNullFieldException("type"),
)
}