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

com.pulumi.cloudflare.kotlin.inputs.LoadBalancerRuleOverrideLocationStrategyArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.LoadBalancerRuleOverrideLocationStrategyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property mode Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful. Value `pop` will use the Cloudflare PoP location. Value `resolver_ip` will use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, it will use the Cloudflare PoP location. Available values: `pop`, `resolver_ip`.
 * @property preferEcs Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location. Value `always` will always prefer ECS, `never` will never prefer ECS, `proximity` will prefer ECS only when `steering_policy="proximity"`, and `geo` will prefer ECS only when `steering_policy="geo"`. Available values: `always`, `never`, `proximity`, `geo`.
 */
public data class LoadBalancerRuleOverrideLocationStrategyArgs(
    public val mode: Output? = null,
    public val preferEcs: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerRuleOverrideLocationStrategyArgs =
        com.pulumi.cloudflare.inputs.LoadBalancerRuleOverrideLocationStrategyArgs.builder()
            .mode(mode?.applyValue({ args0 -> args0 }))
            .preferEcs(preferEcs?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [LoadBalancerRuleOverrideLocationStrategyArgs].
 */
@PulumiTagMarker
public class LoadBalancerRuleOverrideLocationStrategyArgsBuilder internal constructor() {
    private var mode: Output? = null

    private var preferEcs: Output? = null

    /**
     * @param value Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful. Value `pop` will use the Cloudflare PoP location. Value `resolver_ip` will use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, it will use the Cloudflare PoP location. Available values: `pop`, `resolver_ip`.
     */
    @JvmName("wdjujqeehwmqyfgj")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location. Value `always` will always prefer ECS, `never` will never prefer ECS, `proximity` will prefer ECS only when `steering_policy="proximity"`, and `geo` will prefer ECS only when `steering_policy="geo"`. Available values: `always`, `never`, `proximity`, `geo`.
     */
    @JvmName("skvsinjwybbnvris")
    public suspend fun preferEcs(`value`: Output) {
        this.preferEcs = value
    }

    /**
     * @param value Determines the authoritative location when ECS is not preferred, does not exist in the request, or its GeoIP lookup is unsuccessful. Value `pop` will use the Cloudflare PoP location. Value `resolver_ip` will use the DNS resolver GeoIP location. If the GeoIP lookup is unsuccessful, it will use the Cloudflare PoP location. Available values: `pop`, `resolver_ip`.
     */
    @JvmName("ohrjqolryuvjsxvs")
    public suspend fun mode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    /**
     * @param value Whether the EDNS Client Subnet (ECS) GeoIP should be preferred as the authoritative location. Value `always` will always prefer ECS, `never` will never prefer ECS, `proximity` will prefer ECS only when `steering_policy="proximity"`, and `geo` will prefer ECS only when `steering_policy="geo"`. Available values: `always`, `never`, `proximity`, `geo`.
     */
    @JvmName("nsubnyxtltdcwpnk")
    public suspend fun preferEcs(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preferEcs = mapped
    }

    internal fun build(): LoadBalancerRuleOverrideLocationStrategyArgs =
        LoadBalancerRuleOverrideLocationStrategyArgs(
            mode = mode,
            preferEcs = preferEcs,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy