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

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

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

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

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

/**
 *
 * @property fallbackBehavior The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.
 * > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
 * You can specify the following fallback behaviors:
 * - `MATCH` - Treat the web request as matching the rule statement. AWS WAF applies the rule action to the request.
 * - `NO_MATCH` - Treat the web request as not matching the rule statement.
 * @property headerName The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this to `X-Forwarded-For` .
 * > If the specified header isn't present in the request, AWS WAF doesn't apply the rule to the web request at all.
 */
public data class WebAclForwardedIpConfiguration(
    public val fallbackBehavior: WebAclForwardedIpConfigurationFallbackBehavior,
    public val headerName: String,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.WebAclForwardedIpConfiguration): WebAclForwardedIpConfiguration = WebAclForwardedIpConfiguration(
            fallbackBehavior = javaType.fallbackBehavior().let({ args0 ->
                com.pulumi.awsnative.wafv2.kotlin.enums.WebAclForwardedIpConfigurationFallbackBehavior.Companion.toKotlin(args0)
            }),
            headerName = javaType.headerName(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy