
com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupForwardedIpConfiguration.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 com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupForwardedIpConfigurationFallbackBehavior
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 RuleGroupForwardedIpConfiguration(
public val fallbackBehavior: RuleGroupForwardedIpConfigurationFallbackBehavior,
public val headerName: String,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.RuleGroupForwardedIpConfiguration): RuleGroupForwardedIpConfiguration = RuleGroupForwardedIpConfiguration(
fallbackBehavior = javaType.fallbackBehavior().let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupForwardedIpConfigurationFallbackBehavior.Companion.toKotlin(args0)
}),
headerName = javaType.headerName(),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy