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

com.pulumi.azurenative.containerservice.kotlin.inputs.ManagedClusterLoadBalancerProfileArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.containerservice.kotlin.inputs

import com.pulumi.azurenative.containerservice.inputs.ManagedClusterLoadBalancerProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Profile of the managed cluster load balancer.
 * @property allocatedOutboundPorts The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports.
 * @property effectiveOutboundIPs The effective outbound IP resources of the cluster load balancer.
 * @property enableMultipleStandardLoadBalancers Enable multiple standard load balancers per AKS cluster or not.
 * @property idleTimeoutInMinutes Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 30 minutes.
 * @property managedOutboundIPs Desired managed outbound IPs for the cluster load balancer.
 * @property outboundIPPrefixes Desired outbound IP Prefix resources for the cluster load balancer.
 * @property outboundIPs Desired outbound IP resources for the cluster load balancer.
 */
public data class ManagedClusterLoadBalancerProfileArgs(
    public val allocatedOutboundPorts: Output? = null,
    public val effectiveOutboundIPs: Output>? = null,
    public val enableMultipleStandardLoadBalancers: Output? = null,
    public val idleTimeoutInMinutes: Output? = null,
    public val managedOutboundIPs: Output? =
        null,
    public val outboundIPPrefixes: Output? =
        null,
    public val outboundIPs: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.containerservice.inputs.ManagedClusterLoadBalancerProfileArgs =
        com.pulumi.azurenative.containerservice.inputs.ManagedClusterLoadBalancerProfileArgs.builder()
            .allocatedOutboundPorts(allocatedOutboundPorts?.applyValue({ args0 -> args0 }))
            .effectiveOutboundIPs(
                effectiveOutboundIPs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .enableMultipleStandardLoadBalancers(
                enableMultipleStandardLoadBalancers?.applyValue({ args0 ->
                    args0
                }),
            )
            .idleTimeoutInMinutes(idleTimeoutInMinutes?.applyValue({ args0 -> args0 }))
            .managedOutboundIPs(
                managedOutboundIPs?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .outboundIPPrefixes(
                outboundIPPrefixes?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .outboundIPs(outboundIPs?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ManagedClusterLoadBalancerProfileArgs].
 */
@PulumiTagMarker
public class ManagedClusterLoadBalancerProfileArgsBuilder internal constructor() {
    private var allocatedOutboundPorts: Output? = null

    private var effectiveOutboundIPs: Output>? = null

    private var enableMultipleStandardLoadBalancers: Output? = null

    private var idleTimeoutInMinutes: Output? = null

    private var managedOutboundIPs: Output? =
        null

    private var outboundIPPrefixes: Output? =
        null

    private var outboundIPs: Output? = null

    /**
     * @param value The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports.
     */
    @JvmName("lqqndjxjadumxnbj")
    public suspend fun allocatedOutboundPorts(`value`: Output) {
        this.allocatedOutboundPorts = value
    }

    /**
     * @param value The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("bybmsmampanpptyd")
    public suspend fun effectiveOutboundIPs(`value`: Output>) {
        this.effectiveOutboundIPs = value
    }

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

    /**
     * @param values The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("paclxywhgnruhpqh")
    public suspend fun effectiveOutboundIPs(values: List>) {
        this.effectiveOutboundIPs = Output.all(values)
    }

    /**
     * @param value Enable multiple standard load balancers per AKS cluster or not.
     */
    @JvmName("fjyefnawredfguyj")
    public suspend fun enableMultipleStandardLoadBalancers(`value`: Output) {
        this.enableMultipleStandardLoadBalancers = value
    }

    /**
     * @param value Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 30 minutes.
     */
    @JvmName("lemhxpewfftvijyd")
    public suspend fun idleTimeoutInMinutes(`value`: Output) {
        this.idleTimeoutInMinutes = value
    }

    /**
     * @param value Desired managed outbound IPs for the cluster load balancer.
     */
    @JvmName("cjgycdtqmkgtegha")
    public suspend fun managedOutboundIPs(`value`: Output) {
        this.managedOutboundIPs = value
    }

    /**
     * @param value Desired outbound IP Prefix resources for the cluster load balancer.
     */
    @JvmName("uhxirhajkiwyvhxr")
    public suspend fun outboundIPPrefixes(`value`: Output) {
        this.outboundIPPrefixes = value
    }

    /**
     * @param value Desired outbound IP resources for the cluster load balancer.
     */
    @JvmName("lmxdxmxgfjncfrci")
    public suspend fun outboundIPs(`value`: Output) {
        this.outboundIPs = value
    }

    /**
     * @param value The desired number of allocated SNAT ports per VM. Allowed values are in the range of 0 to 64000 (inclusive). The default value is 0 which results in Azure dynamically allocating ports.
     */
    @JvmName("diveskjxolgjuncu")
    public suspend fun allocatedOutboundPorts(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allocatedOutboundPorts = mapped
    }

    /**
     * @param value The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("yohnonngnawqcnuv")
    public suspend fun effectiveOutboundIPs(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("jvtmbphctixktikq")
    public suspend fun effectiveOutboundIPs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ResourceReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("wywymfpnbtuhyxxn")
    public suspend fun effectiveOutboundIPs(vararg argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ResourceReferenceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param argument The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("mircjhimredjtxox")
    public suspend fun effectiveOutboundIPs(argument: suspend ResourceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ResourceReferenceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param values The effective outbound IP resources of the cluster load balancer.
     */
    @JvmName("umuxgjapvfvfufgi")
    public suspend fun effectiveOutboundIPs(vararg values: ResourceReferenceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.effectiveOutboundIPs = mapped
    }

    /**
     * @param value Enable multiple standard load balancers per AKS cluster or not.
     */
    @JvmName("jkergxrfnthqcbdx")
    public suspend fun enableMultipleStandardLoadBalancers(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableMultipleStandardLoadBalancers = mapped
    }

    /**
     * @param value Desired outbound flow idle timeout in minutes. Allowed values are in the range of 4 to 120 (inclusive). The default value is 30 minutes.
     */
    @JvmName("aejravvpgadymeyq")
    public suspend fun idleTimeoutInMinutes(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.idleTimeoutInMinutes = mapped
    }

    /**
     * @param value Desired managed outbound IPs for the cluster load balancer.
     */
    @JvmName("sjsmbuaglrlewtyh")
    public suspend fun managedOutboundIPs(`value`: ManagedClusterLoadBalancerProfileManagedOutboundIPsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.managedOutboundIPs = mapped
    }

    /**
     * @param argument Desired managed outbound IPs for the cluster load balancer.
     */
    @JvmName("ulpmmetjpslufxov")
    public suspend fun managedOutboundIPs(argument: suspend ManagedClusterLoadBalancerProfileManagedOutboundIPsArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterLoadBalancerProfileManagedOutboundIPsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.managedOutboundIPs = mapped
    }

    /**
     * @param value Desired outbound IP Prefix resources for the cluster load balancer.
     */
    @JvmName("twnkpehewbhojakg")
    public suspend fun outboundIPPrefixes(`value`: ManagedClusterLoadBalancerProfileOutboundIPPrefixesArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundIPPrefixes = mapped
    }

    /**
     * @param argument Desired outbound IP Prefix resources for the cluster load balancer.
     */
    @JvmName("skomqqbuggpocpem")
    public suspend fun outboundIPPrefixes(argument: suspend ManagedClusterLoadBalancerProfileOutboundIPPrefixesArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterLoadBalancerProfileOutboundIPPrefixesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.outboundIPPrefixes = mapped
    }

    /**
     * @param value Desired outbound IP resources for the cluster load balancer.
     */
    @JvmName("gtdooyheshoexysg")
    public suspend fun outboundIPs(`value`: ManagedClusterLoadBalancerProfileOutboundIPsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.outboundIPs = mapped
    }

    /**
     * @param argument Desired outbound IP resources for the cluster load balancer.
     */
    @JvmName("iitfjmtxctdcxqjt")
    public suspend fun outboundIPs(argument: suspend ManagedClusterLoadBalancerProfileOutboundIPsArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedClusterLoadBalancerProfileOutboundIPsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.outboundIPs = mapped
    }

    internal fun build(): ManagedClusterLoadBalancerProfileArgs =
        ManagedClusterLoadBalancerProfileArgs(
            allocatedOutboundPorts = allocatedOutboundPorts,
            effectiveOutboundIPs = effectiveOutboundIPs,
            enableMultipleStandardLoadBalancers = enableMultipleStandardLoadBalancers,
            idleTimeoutInMinutes = idleTimeoutInMinutes,
            managedOutboundIPs = managedOutboundIPs,
            outboundIPPrefixes = outboundIPPrefixes,
            outboundIPs = outboundIPs,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy