com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupIpSetReferenceStatement.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.String
import kotlin.Suppress
/**
*
* @property arn The Amazon Resource Name (ARN) of the `IPSet` that this statement references.
* @property ipSetForwardedIpConfig The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.
* > 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 RuleGroupIpSetReferenceStatement(
public val arn: String,
public val ipSetForwardedIpConfig: RuleGroupIpSetForwardedIpConfiguration? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.outputs.RuleGroupIpSetReferenceStatement): RuleGroupIpSetReferenceStatement = RuleGroupIpSetReferenceStatement(
arn = javaType.arn(),
ipSetForwardedIpConfig = javaType.ipSetForwardedIpConfig().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.wafv2.kotlin.outputs.RuleGroupIpSetForwardedIpConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}