
com.pulumi.awsnative.wafv2.kotlin.inputs.RuleGroupIpSetReferenceStatementArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.wafv2.kotlin.inputs
import com.pulumi.awsnative.wafv2.inputs.RuleGroupIpSetReferenceStatementArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @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 RuleGroupIpSetReferenceStatementArgs(
public val arn: Output,
public val ipSetForwardedIpConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.wafv2.inputs.RuleGroupIpSetReferenceStatementArgs =
com.pulumi.awsnative.wafv2.inputs.RuleGroupIpSetReferenceStatementArgs.builder()
.arn(arn.applyValue({ args0 -> args0 }))
.ipSetForwardedIpConfig(
ipSetForwardedIpConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [RuleGroupIpSetReferenceStatementArgs].
*/
@PulumiTagMarker
public class RuleGroupIpSetReferenceStatementArgsBuilder internal constructor() {
private var arn: Output? = null
private var ipSetForwardedIpConfig: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the `IPSet` that this statement references.
*/
@JvmName("lgjgtbieglxcdame")
public suspend fun arn(`value`: Output) {
this.arn = value
}
/**
* @param value 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.
*/
@JvmName("lfjhuyccuvcwjkoi")
public suspend fun ipSetForwardedIpConfig(`value`: Output) {
this.ipSetForwardedIpConfig = value
}
/**
* @param value The Amazon Resource Name (ARN) of the `IPSet` that this statement references.
*/
@JvmName("yfdiiolnwbyrhfyg")
public suspend fun arn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.arn = mapped
}
/**
* @param value 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.
*/
@JvmName("wipnxvcbfapsmcct")
public suspend fun ipSetForwardedIpConfig(`value`: RuleGroupIpSetForwardedIpConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipSetForwardedIpConfig = mapped
}
/**
* @param argument 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.
*/
@JvmName("eckmxlwitammfvyy")
public suspend fun ipSetForwardedIpConfig(argument: suspend RuleGroupIpSetForwardedIpConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = RuleGroupIpSetForwardedIpConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.ipSetForwardedIpConfig = mapped
}
internal fun build(): RuleGroupIpSetReferenceStatementArgs = RuleGroupIpSetReferenceStatementArgs(
arn = arn ?: throw PulumiNullFieldException("arn"),
ipSetForwardedIpConfig = ipSetForwardedIpConfig,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy