com.pulumi.aws.wafv2.kotlin.inputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.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.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.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
WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs(
public val customResponseBodyKey: Output? = null,
public val responseCode: Output,
public val responseHeaders: Output>? =
null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafv2.inputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs =
com.pulumi.aws.wafv2.inputs.WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs.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 [WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgs].
*/
@PulumiTagMarker
public class
WebAclRuleStatementManagedRuleGroupStatementRuleActionOverrideActionToUseBlockCustomResponseArgsBuilder
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("evcljuuobwfgyiem")
public suspend fun customResponseBodyKey(`value`: Output) {
this.customResponseBodyKey = value
}
/**
* @param value The HTTP status code to return to the client.
*/
@JvmName("dfndkarkvtdhgsgc")
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("gkvqaqoldxokwufi")
public suspend fun responseHeaders(`value`: Output>) {
this.responseHeaders = value
}
@JvmName("cyclktjsbcpkxewi")
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("wlhigfoxkxgqfsvf")
public suspend fun responseHeaders(values: List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy