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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterApiServerAccessProfileArgs.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.KubernetesClusterApiServerAccessProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property authorizedIpRanges Set of authorized IP ranges to allow access to API server, e.g. ["198.51.100.0/24"].
 * @property subnetId The ID of the Subnet where the API server endpoint is delegated to.
 * @property vnetIntegrationEnabled Should API Server VNet Integration be enabled? For more details please visit [Use API Server VNet Integration](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration).
 * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/EnableAPIServerVnetIntegrationPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration#register-the-enableapiservervnetintegrationpreview-preview-feature) for more information.
 */
public data class KubernetesClusterApiServerAccessProfileArgs(
    public val authorizedIpRanges: Output>? = null,
    public val subnetId: Output? = null,
    public val vnetIntegrationEnabled: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.containerservice.inputs.KubernetesClusterApiServerAccessProfileArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterApiServerAccessProfileArgs.builder()
            .authorizedIpRanges(authorizedIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetId(subnetId?.applyValue({ args0 -> args0 }))
            .vnetIntegrationEnabled(vnetIntegrationEnabled?.applyValue({ args0 -> args0 })).build()
}

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

    private var subnetId: Output? = null

    private var vnetIntegrationEnabled: Output? = null

    /**
     * @param value Set of authorized IP ranges to allow access to API server, e.g. ["198.51.100.0/24"].
     */
    @JvmName("faftcnnpailmsufj")
    public suspend fun authorizedIpRanges(`value`: Output>) {
        this.authorizedIpRanges = value
    }

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

    /**
     * @param values Set of authorized IP ranges to allow access to API server, e.g. ["198.51.100.0/24"].
     */
    @JvmName("mlhrcnuksygdkyng")
    public suspend fun authorizedIpRanges(values: List>) {
        this.authorizedIpRanges = Output.all(values)
    }

    /**
     * @param value The ID of the Subnet where the API server endpoint is delegated to.
     */
    @JvmName("keqdnnccdgwmjiyr")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value Should API Server VNet Integration be enabled? For more details please visit [Use API Server VNet Integration](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration).
     * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/EnableAPIServerVnetIntegrationPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration#register-the-enableapiservervnetintegrationpreview-preview-feature) for more information.
     */
    @JvmName("mhcgykltfxuxgbex")
    public suspend fun vnetIntegrationEnabled(`value`: Output) {
        this.vnetIntegrationEnabled = value
    }

    /**
     * @param value Set of authorized IP ranges to allow access to API server, e.g. ["198.51.100.0/24"].
     */
    @JvmName("xwlnjmfxneqeirsu")
    public suspend fun authorizedIpRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.authorizedIpRanges = mapped
    }

    /**
     * @param values Set of authorized IP ranges to allow access to API server, e.g. ["198.51.100.0/24"].
     */
    @JvmName("heoymasrfqsvtbyf")
    public suspend fun authorizedIpRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authorizedIpRanges = mapped
    }

    /**
     * @param value The ID of the Subnet where the API server endpoint is delegated to.
     */
    @JvmName("pelquxlmvjvwpeno")
    public suspend fun subnetId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    /**
     * @param value Should API Server VNet Integration be enabled? For more details please visit [Use API Server VNet Integration](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration).
     * > **Note:** This requires that the Preview Feature `Microsoft.ContainerService/EnableAPIServerVnetIntegrationPreview` is enabled and the Resource Provider is re-registered, see [the documentation](https://learn.microsoft.com/en-us/azure/aks/api-server-vnet-integration#register-the-enableapiservervnetintegrationpreview-preview-feature) for more information.
     */
    @JvmName("qcvqmbgdeowwterv")
    public suspend fun vnetIntegrationEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vnetIntegrationEnabled = mapped
    }

    internal fun build(): KubernetesClusterApiServerAccessProfileArgs =
        KubernetesClusterApiServerAccessProfileArgs(
            authorizedIpRanges = authorizedIpRanges,
            subnetId = subnetId,
            vnetIntegrationEnabled = vnetIntegrationEnabled,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy