com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupCustomResponse.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.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)
})
}),
)
}
}