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

com.pulumi.awsnative.wafv2.kotlin.enums.RuleGroupIpSetForwardedIpConfigurationPosition.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.wafv2.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * The position in the header to search for the IP address. The header can contain IP addresses of the original client and also of proxies. For example, the header value could be `10.1.1.1, 127.0.0.0, 10.10.10.10` where the first IP address identifies the original client and the rest identify proxies that the request went through.
 * The options for this setting are the following:
 * - FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.
 * - LAST - Inspect the last IP address in the list of IP addresses in the header.
 * - ANY - Inspect all IP addresses in the header for a match. If the header contains more than 10 IP addresses, AWS WAF inspects the last 10.
 */
public enum class RuleGroupIpSetForwardedIpConfigurationPosition(
    public val javaValue: com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition,
) :
    ConvertibleToJava {
    First(com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition.First),
    Last(com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition.Last),
    Any(com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition.Any),
    ;

    override fun toJava(): com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.wafv2.enums.RuleGroupIpSetForwardedIpConfigurationPosition): RuleGroupIpSetForwardedIpConfigurationPosition =
            RuleGroupIpSetForwardedIpConfigurationPosition.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy