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

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

package com.pulumi.azure.containerservice.kotlin.inputs

import com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs.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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property allowedHostPorts One or more `allowed_host_ports` blocks as defined below.
 * @property applicationSecurityGroupIds A list of Application Security Group IDs which should be associated with this Node Pool.
 * @property nodePublicIpTags Specifies a mapping of tags to the instance-level public IPs. Changing this forces a new resource to be created.
 * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/NodePublicIPTagsPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/use-node-public-ips#use-public-ip-tags-on-node-public-ips-preview) for more information.
 */
public data class KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs(
    public val allowedHostPorts: Output>? = null,
    public val applicationSecurityGroupIds: Output>? = null,
    public val nodePublicIpTags: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs.builder()
            .allowedHostPorts(
                allowedHostPorts?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .applicationSecurityGroupIds(
                applicationSecurityGroupIds?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .nodePublicIpTags(
                nodePublicIpTags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

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

    private var applicationSecurityGroupIds: Output>? = null

    private var nodePublicIpTags: Output>? = null

    /**
     * @param value One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("eyqbrsmxhgegpjlu")
    public suspend fun allowedHostPorts(`value`: Output>) {
        this.allowedHostPorts = value
    }

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

    /**
     * @param values One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("qmgabrwxtclljuou")
    public suspend fun allowedHostPorts(values: List>) {
        this.allowedHostPorts = Output.all(values)
    }

    /**
     * @param value A list of Application Security Group IDs which should be associated with this Node Pool.
     */
    @JvmName("ydchrewbxciivoki")
    public suspend fun applicationSecurityGroupIds(`value`: Output>) {
        this.applicationSecurityGroupIds = value
    }

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

    /**
     * @param values A list of Application Security Group IDs which should be associated with this Node Pool.
     */
    @JvmName("elcxyohjarfxlucn")
    public suspend fun applicationSecurityGroupIds(values: List>) {
        this.applicationSecurityGroupIds = Output.all(values)
    }

    /**
     * @param value Specifies a mapping of tags to the instance-level public IPs. Changing this forces a new resource to be created.
     * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/NodePublicIPTagsPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/use-node-public-ips#use-public-ip-tags-on-node-public-ips-preview) for more information.
     */
    @JvmName("tutnqcqoaqokoejk")
    public suspend fun nodePublicIpTags(`value`: Output>) {
        this.nodePublicIpTags = value
    }

    /**
     * @param value One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("xlmycemybwxvotth")
    public suspend fun allowedHostPorts(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowedHostPorts = mapped
    }

    /**
     * @param argument One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("ldwwwbdqsbdocvgr")
    public suspend fun allowedHostPorts(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedHostPorts = mapped
    }

    /**
     * @param argument One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("uyebwchatmhbgsoe")
    public suspend fun allowedHostPorts(vararg argument: suspend KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.allowedHostPorts = mapped
    }

    /**
     * @param argument One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("khhlxftxxypwcpbt")
    public suspend fun allowedHostPorts(argument: suspend KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.allowedHostPorts = mapped
    }

    /**
     * @param values One or more `allowed_host_ports` blocks as defined below.
     */
    @JvmName("gisvlkrsjrquiaup")
    public suspend fun allowedHostPorts(vararg values: KubernetesClusterDefaultNodePoolNodeNetworkProfileAllowedHostPortArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.allowedHostPorts = mapped
    }

    /**
     * @param value A list of Application Security Group IDs which should be associated with this Node Pool.
     */
    @JvmName("gwkfmweraiipqldn")
    public suspend fun applicationSecurityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.applicationSecurityGroupIds = mapped
    }

    /**
     * @param values A list of Application Security Group IDs which should be associated with this Node Pool.
     */
    @JvmName("qddynboucqxixjpc")
    public suspend fun applicationSecurityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.applicationSecurityGroupIds = mapped
    }

    /**
     * @param value Specifies a mapping of tags to the instance-level public IPs. Changing this forces a new resource to be created.
     * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/NodePublicIPTagsPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/use-node-public-ips#use-public-ip-tags-on-node-public-ips-preview) for more information.
     */
    @JvmName("rfvmxvhdsjgcikcx")
    public suspend fun nodePublicIpTags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.nodePublicIpTags = mapped
    }

    /**
     * @param values Specifies a mapping of tags to the instance-level public IPs. Changing this forces a new resource to be created.
     * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/NodePublicIPTagsPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/use-node-public-ips#use-public-ip-tags-on-node-public-ips-preview) for more information.
     */
    @JvmName("kkewvqjpyegcnxgy")
    public fun nodePublicIpTags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.nodePublicIpTags = mapped
    }

    internal fun build(): KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs =
        KubernetesClusterDefaultNodePoolNodeNetworkProfileArgs(
            allowedHostPorts = allowedHostPorts,
            applicationSecurityGroupIds = applicationSecurityGroupIds,
            nodePublicIpTags = nodePublicIpTags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy