![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupCustomResponse.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* Custom response.
* @property customResponseBodyKey Custom response body key.
* @property responseCode The HTTP status code to return to the client.
* For a list of status codes that you can use in your custom responses, see [Supported status codes for custom response](https://docs.aws.amazon.com/waf/latest/developerguide/customizing-the-response-status-codes.html) in the *AWS WAF Developer Guide* .
* @property responseHeaders Collection of HTTP headers.
*/
public data class RuleGroupCustomResponse(
public val customResponseBodyKey: String? = null,
public val responseCode: Int,
public val responseHeaders: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.RuleGroupCustomResponse): RuleGroupCustomResponse = RuleGroupCustomResponse(
customResponseBodyKey = javaType.customResponseBodyKey().map({ args0 -> args0 }).orElse(null),
responseCode = javaType.responseCode(),
responseHeaders = javaType.responseHeaders().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupCustomHttpHeader.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy