![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.wafv2.kotlin.inputs.WebAclCountActionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.WebAclCountActionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Allow traffic towards application.
* @property customRequestHandling Defines custom handling for the web request.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
*/
public data class WebAclCountActionArgs(
public val customRequestHandling: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.WebAclCountActionArgs =
com.pulumi.awsnative.wafv2.inputs.WebAclCountActionArgs.builder()
.customRequestHandling(
customRequestHandling?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [WebAclCountActionArgs].
*/
@PulumiTagMarker
public class WebAclCountActionArgsBuilder internal constructor() {
private var customRequestHandling: Output? = null
/**
* @param value Defines custom handling for the web request.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("tjflgnepycnbqwoq")
public suspend fun customRequestHandling(`value`: Output) {
this.customRequestHandling = value
}
/**
* @param value Defines custom handling for the web request.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("rnbhggndrlgwmauq")
public suspend fun customRequestHandling(`value`: WebAclCustomRequestHandlingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customRequestHandling = mapped
}
/**
* @param argument Defines custom handling for the web request.
* For information about customizing web requests and responses, see [Customizing web requests and responses in AWS WAF](https://docs.aws.amazon.com/waf/latest/developerguide/waf-custom-request-response.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("qbuvlsksrybvbbaq")
public suspend fun customRequestHandling(argument: suspend WebAclCustomRequestHandlingArgsBuilder.() -> Unit) {
val toBeMapped = WebAclCustomRequestHandlingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.customRequestHandling = mapped
}
internal fun build(): WebAclCountActionArgs = WebAclCountActionArgs(
customRequestHandling = customRequestHandling,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy