com.pulumi.aws.wafv2.kotlin.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.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.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property customResponseBodyKey References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource.
* @property responseCode The HTTP status code to return to the client.
* @property responseHeaders The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details.
*/
public data class
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs(
public val customResponseBodyKey: Output? = null,
public val responseCode: Output,
public val responseHeaders: Output>? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs =
com.pulumi.aws.wafv2.inputs.WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.builder()
.customResponseBodyKey(customResponseBodyKey?.applyValue({ args0 -> args0 }))
.responseCode(responseCode.applyValue({ args0 -> args0 }))
.responseHeaders(
responseHeaders?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgs].
*/
@PulumiTagMarker
public class
WebAclRuleStatementRuleGroupReferenceStatementRuleActionOverrideActionToUseBlockCustomResponseArgsBuilder
internal constructor() {
private var customResponseBodyKey: Output? = null
private var responseCode: Output? = null
private var responseHeaders:
Output>? =
null
/**
* @param value References the response body that you want AWS WAF to return to the web request client. This must reference a `key` defined in a `custom_response_body` block of this resource.
*/
@JvmName("mewmlvmjvucwhpsv")
public suspend fun customResponseBodyKey(`value`: Output) {
this.customResponseBodyKey = value
}
/**
* @param value The HTTP status code to return to the client.
*/
@JvmName("itgvkriacybqwyjl")
public suspend fun responseCode(`value`: Output) {
this.responseCode = value
}
/**
* @param value The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details.
*/
@JvmName("kmcuhntvassxcvdy")
public suspend fun responseHeaders(`value`: Output>) {
this.responseHeaders = value
}
@JvmName("aqvralknnehtpyyw")
public suspend fun responseHeaders(vararg values: Output) {
this.responseHeaders = Output.all(values.asList())
}
/**
* @param values The `response_header` blocks used to define the HTTP response headers added to the response. See `response_header` below for details.
*/
@JvmName("jyadkuedlthiuijt")
public suspend fun responseHeaders(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy