com.pulumi.aws.wafv2.kotlin.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs.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.wafv2.kotlin.inputs
import com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs.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
/**
*
* @property customResponse Defines a custom response for the web request. See `custom_response` below for details.
*/
public data class
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs(
public val customResponse: Output? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs =
com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs.builder()
.customResponse(
customResponse?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs].
*/
@PulumiTagMarker
public class
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgsBuilder
internal constructor() {
private var customResponse:
Output? =
null
/**
* @param value Defines a custom response for the web request. See `custom_response` below for details.
*/
@JvmName("sfuqtihemlwpcwub")
public suspend fun customResponse(`value`: Output) {
this.customResponse = value
}
/**
* @param value Defines a custom response for the web request. See `custom_response` below for details.
*/
@JvmName("kckvxywmallpvtqv")
public suspend fun customResponse(`value`: WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customResponse = mapped
}
/**
* @param argument Defines a custom response for the web request. See `custom_response` below for details.
*/
@JvmName("mcpmgjergqlrrmba")
public suspend fun customResponse(argument: suspend WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgsBuilder.() -> Unit) {
val toBeMapped =
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.customResponse = mapped
}
internal fun build(): WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs =
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockArgs(
customResponse = customResponse,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy