
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclDefaultAction.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.outputs
import kotlin.Suppress
/**
* Default Action WebACL will take against ingress traffic when there is no matching Rule.
* @property allow Specifies that AWS WAF should allow requests by default.
* @property block Specifies that AWS WAF should block requests by default.
*/
public data class WebAclDefaultAction(
public val allow: WebAclAllowAction? = null,
public val block: WebAclBlockAction? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.WebAclDefaultAction): WebAclDefaultAction = WebAclDefaultAction(
allow = javaType.allow().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclAllowAction.Companion.toKotlin(args0)
})
}).orElse(null),
block = javaType.block().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.WebAclBlockAction.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy