com.pulumi.aws.waf.kotlin.inputs.WebAclDefaultActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.waf.kotlin.inputs
import com.pulumi.aws.waf.inputs.WebAclDefaultActionArgs.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 Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the `rules`.
* e.g., `ALLOW` or `BLOCK`
*/
public data class WebAclDefaultActionArgs(
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.waf.inputs.WebAclDefaultActionArgs =
com.pulumi.aws.waf.inputs.WebAclDefaultActionArgs.builder()
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WebAclDefaultActionArgs].
*/
@PulumiTagMarker
public class WebAclDefaultActionArgsBuilder internal constructor() {
private var type: Output? = null
/**
* @param value Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the `rules`.
* e.g., `ALLOW` or `BLOCK`
*/
@JvmName("sugxvpewwictegme")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Specifies how you want AWS WAF to respond to requests that don't match the criteria in any of the `rules`.
* e.g., `ALLOW` or `BLOCK`
*/
@JvmName("nvkshnqhcfcpgmym")
public suspend fun type(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): WebAclDefaultActionArgs = WebAclDefaultActionArgs(
type = type ?: throw PulumiNullFieldException("type"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy