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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@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 - 2024 Weber Informatics LLC | Privacy Policy