com.pulumi.aws.wafv2.kotlin.inputs.RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.wafv2.kotlin.inputs
import com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @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. Valid values include: `MATCH` or `NO_MATCH`.
* @property headerName The name of the HTTP header to use for the IP address.
* @property position The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10.
*/
public data class RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs(
public val fallbackBehavior: Output,
public val headerName: Output,
public val position: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs =
com.pulumi.aws.wafv2.inputs.RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs.builder()
.fallbackBehavior(fallbackBehavior.applyValue({ args0 -> args0 }))
.headerName(headerName.applyValue({ args0 -> args0 }))
.position(position.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs].
*/
@PulumiTagMarker
public class RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgsBuilder internal constructor() {
private var fallbackBehavior: Output? = null
private var headerName: Output? = null
private var position: Output? = null
/**
* @param value The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
*/
@JvmName("ucqxtccwedqcfhmj")
public suspend fun fallbackBehavior(`value`: Output) {
this.fallbackBehavior = value
}
/**
* @param value The name of the HTTP header to use for the IP address.
*/
@JvmName("otmageswpgotaogy")
public suspend fun headerName(`value`: Output) {
this.headerName = value
}
/**
* @param value The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10.
*/
@JvmName("nareucwmgjuebhtr")
public suspend fun position(`value`: Output) {
this.position = value
}
/**
* @param value The match status to assign to the web request if the request doesn't have a valid IP address in the specified position. Valid values include: `MATCH` or `NO_MATCH`.
*/
@JvmName("ydbqslxikbanhivb")
public suspend fun fallbackBehavior(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.fallbackBehavior = mapped
}
/**
* @param value The name of the HTTP header to use for the IP address.
*/
@JvmName("fynerpmdddpdmqyx")
public suspend fun headerName(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.headerName = mapped
}
/**
* @param value The position in the header to search for the IP address. Valid values include: `FIRST`, `LAST`, or `ANY`. If `ANY` is specified and the header contains more than 10 IP addresses, AWS WAFv2 inspects the last 10.
*/
@JvmName("fhjjqcmxwdhjvhpa")
public suspend fun position(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.position = mapped
}
internal fun build(): RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs =
RuleGroupRuleStatementIpSetReferenceStatementIpSetForwardedIpConfigArgs(
fallbackBehavior = fallbackBehavior ?: throw PulumiNullFieldException("fallbackBehavior"),
headerName = headerName ?: throw PulumiNullFieldException("headerName"),
position = position ?: throw PulumiNullFieldException("position"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy