
com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupCustomResponseBodyArgs.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.inputs
import com.pulumi.awsnative.wafv2.inputs.RuleGroupCustomResponseBodyArgs.builder
import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupResponseContentType
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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Custom response body.
* @property content The payload of the custom response.
* You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
* @property contentType The type of content in the payload that you are defining in the `Content` string.
*/
public data class RuleGroupCustomResponseBodyArgs(
public val content: Output,
public val contentType: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.RuleGroupCustomResponseBodyArgs =
com.pulumi.awsnative.wafv2.inputs.RuleGroupCustomResponseBodyArgs.builder()
.content(content.applyValue({ args0 -> args0 }))
.contentType(contentType.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [RuleGroupCustomResponseBodyArgs].
*/
@PulumiTagMarker
public class RuleGroupCustomResponseBodyArgsBuilder internal constructor() {
private var content: Output? = null
private var contentType: Output? = null
/**
* @param value The payload of the custom response.
* You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("jagjkkhvmykfrodk")
public suspend fun content(`value`: Output) {
this.content = value
}
/**
* @param value The type of content in the payload that you are defining in the `Content` string.
*/
@JvmName("coefyltbaddnpyui")
public suspend fun contentType(`value`: Output) {
this.contentType = value
}
/**
* @param value The payload of the custom response.
* You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the `ContentType` setting.
* For information about the limits on count and size for custom request and response settings, see [AWS WAF quotas](https://docs.aws.amazon.com/waf/latest/developerguide/limits.html) in the *AWS WAF Developer Guide* .
*/
@JvmName("oxmrkwydobjyftjf")
public suspend fun content(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.content = mapped
}
/**
* @param value The type of content in the payload that you are defining in the `Content` string.
*/
@JvmName("hgabjgbgxnuxgsrj")
public suspend fun contentType(`value`: RuleGroupResponseContentType) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.contentType = mapped
}
internal fun build(): RuleGroupCustomResponseBodyArgs = RuleGroupCustomResponseBodyArgs(
content = content ?: throw PulumiNullFieldException("content"),
contentType = contentType ?: throw PulumiNullFieldException("contentType"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy