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

com.pulumi.gcp.gkeonprem.kotlin.inputs.BareMetalClusterLoadBalancerBgpLbConfigArgs.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: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.gkeonprem.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property addressPools AddressPools is a list of non-overlapping IP pools used by load balancer
 * typed services. All addresses must be routable to load balancer nodes.
 * IngressVIP must be included in the pools.
 * Structure is documented below.
 * @property asn BGP autonomous system number (ASN) of the cluster.
 * This field can be updated after cluster creation.
 * @property bgpPeerConfigs The list of BGP peers that the cluster will connect to.
 * At least one peer must be configured for each control plane node.
 * Control plane nodes will connect to these peers to advertise the control
 * plane VIP. The Services load balancer also uses these peers by default.
 * This field can be updated after cluster creation.
 * Structure is documented below.
 * @property loadBalancerNodePoolConfig Specifies the node pool running data plane load balancing. L2 connectivity
 * is required among nodes in this pool. If missing, the control plane node
 * pool is used for data plane load balancing.
 * Structure is documented below.
 */
public data class BareMetalClusterLoadBalancerBgpLbConfigArgs(
    public val addressPools: Output>,
    public val asn: Output,
    public val bgpPeerConfigs: Output>,
    public val loadBalancerNodePoolConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigArgs = com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterLoadBalancerBgpLbConfigArgs.builder()
        .addressPools(
            addressPools.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .asn(asn.applyValue({ args0 -> args0 }))
        .bgpPeerConfigs(
            bgpPeerConfigs.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .loadBalancerNodePoolConfig(
            loadBalancerNodePoolConfig?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        ).build()
}

/**
 * Builder for [BareMetalClusterLoadBalancerBgpLbConfigArgs].
 */
@PulumiTagMarker
public class BareMetalClusterLoadBalancerBgpLbConfigArgsBuilder internal constructor() {
    private var addressPools: Output>? =
        null

    private var asn: Output? = null

    private var bgpPeerConfigs:
        Output>? = null

    private var loadBalancerNodePoolConfig:
        Output? = null

    /**
     * @param value AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("xeltpqgrbmhcnrkk")
    public suspend fun addressPools(`value`: Output>) {
        this.addressPools = value
    }

    @JvmName("tkjijnrlmwxxkobv")
    public suspend fun addressPools(vararg values: Output) {
        this.addressPools = Output.all(values.asList())
    }

    /**
     * @param values AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("dibdpakhijwdtphr")
    public suspend fun addressPools(values: List>) {
        this.addressPools = Output.all(values)
    }

    /**
     * @param value BGP autonomous system number (ASN) of the cluster.
     * This field can be updated after cluster creation.
     */
    @JvmName("qdsiyxsmtnmwvnlb")
    public suspend fun asn(`value`: Output) {
        this.asn = value
    }

    /**
     * @param value The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("htduqiifvyccnpux")
    public suspend fun bgpPeerConfigs(`value`: Output>) {
        this.bgpPeerConfigs = value
    }

    @JvmName("byanockeaauebadt")
    public suspend fun bgpPeerConfigs(vararg values: Output) {
        this.bgpPeerConfigs = Output.all(values.asList())
    }

    /**
     * @param values The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("slmhrochyncbfhsp")
    public suspend fun bgpPeerConfigs(values: List>) {
        this.bgpPeerConfigs = Output.all(values)
    }

    /**
     * @param value Specifies the node pool running data plane load balancing. L2 connectivity
     * is required among nodes in this pool. If missing, the control plane node
     * pool is used for data plane load balancing.
     * Structure is documented below.
     */
    @JvmName("wnxlvumktrcxmogf")
    public suspend fun loadBalancerNodePoolConfig(`value`: Output) {
        this.loadBalancerNodePoolConfig = value
    }

    /**
     * @param value AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("kfymlposkkjqqifj")
    public suspend fun addressPools(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("eywkbipuxlogoqji")
    public suspend fun addressPools(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("vwsaopavxdjoxhde")
    public suspend fun addressPools(vararg argument: suspend BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param argument AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("qasynjgxrcjtfijw")
    public suspend fun addressPools(argument: suspend BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.addressPools = mapped
    }

    /**
     * @param values AddressPools is a list of non-overlapping IP pools used by load balancer
     * typed services. All addresses must be routable to load balancer nodes.
     * IngressVIP must be included in the pools.
     * Structure is documented below.
     */
    @JvmName("bajgkuobxgjpulii")
    public suspend fun addressPools(vararg values: BareMetalClusterLoadBalancerBgpLbConfigAddressPoolArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.addressPools = mapped
    }

    /**
     * @param value BGP autonomous system number (ASN) of the cluster.
     * This field can be updated after cluster creation.
     */
    @JvmName("bmyssgadhaeqwtjx")
    public suspend fun asn(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.asn = mapped
    }

    /**
     * @param value The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("effdsqpxnlfciaif")
    public suspend fun bgpPeerConfigs(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bgpPeerConfigs = mapped
    }

    /**
     * @param argument The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("ioksaukpacejqscl")
    public suspend fun bgpPeerConfigs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.bgpPeerConfigs = mapped
    }

    /**
     * @param argument The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("eadjbrgbhjitjrpl")
    public suspend fun bgpPeerConfigs(vararg argument: suspend BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.bgpPeerConfigs = mapped
    }

    /**
     * @param argument The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("tvfdbhhdmddfntbi")
    public suspend fun bgpPeerConfigs(argument: suspend BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.bgpPeerConfigs = mapped
    }

    /**
     * @param values The list of BGP peers that the cluster will connect to.
     * At least one peer must be configured for each control plane node.
     * Control plane nodes will connect to these peers to advertise the control
     * plane VIP. The Services load balancer also uses these peers by default.
     * This field can be updated after cluster creation.
     * Structure is documented below.
     */
    @JvmName("hufpbtyfyfamvpif")
    public suspend fun bgpPeerConfigs(vararg values: BareMetalClusterLoadBalancerBgpLbConfigBgpPeerConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bgpPeerConfigs = mapped
    }

    /**
     * @param value Specifies the node pool running data plane load balancing. L2 connectivity
     * is required among nodes in this pool. If missing, the control plane node
     * pool is used for data plane load balancing.
     * Structure is documented below.
     */
    @JvmName("xvuplvkgfbwrsgoq")
    public suspend fun loadBalancerNodePoolConfig(`value`: BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerNodePoolConfig = mapped
    }

    /**
     * @param argument Specifies the node pool running data plane load balancing. L2 connectivity
     * is required among nodes in this pool. If missing, the control plane node
     * pool is used for data plane load balancing.
     * Structure is documented below.
     */
    @JvmName("mdxwnqiqkaavmpgy")
    public suspend fun loadBalancerNodePoolConfig(argument: suspend BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgsBuilder.() -> Unit) {
        val toBeMapped =
            BareMetalClusterLoadBalancerBgpLbConfigLoadBalancerNodePoolConfigArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.loadBalancerNodePoolConfig = mapped
    }

    internal fun build(): BareMetalClusterLoadBalancerBgpLbConfigArgs =
        BareMetalClusterLoadBalancerBgpLbConfigArgs(
            addressPools = addressPools ?: throw PulumiNullFieldException("addressPools"),
            asn = asn ?: throw PulumiNullFieldException("asn"),
            bgpPeerConfigs = bgpPeerConfigs ?: throw PulumiNullFieldException("bgpPeerConfigs"),
            loadBalancerNodePoolConfig = loadBalancerNodePoolConfig,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy