All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupCustomResponseBody.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.wafv2.kotlin.outputs

import com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupResponseContentType
import kotlin.String
import kotlin.Suppress

/**
 * 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 RuleGroupCustomResponseBody(
    public val content: String,
    public val contentType: RuleGroupResponseContentType,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.RuleGroupCustomResponseBody): RuleGroupCustomResponseBody = RuleGroupCustomResponseBody(
            content = javaType.content(),
            contentType = javaType.contentType().let({ args0 ->
                com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupResponseContentType.Companion.toKotlin(args0)
            }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy