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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterWebAppRoutingArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.azure.containerservice.inputs.KubernetesClusterWebAppRoutingArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dnsZoneId Specifies the ID of the DNS Zone in which DNS entries are created for applications deployed to the cluster when Web App Routing is enabled. For Bring-Your-Own DNS zones this property should be set to an empty string `""`.
 * @property webAppRoutingIdentities A `web_app_routing_identity` block is exported. The exported attributes are defined below.
 */
public data class KubernetesClusterWebAppRoutingArgs(
    public val dnsZoneId: Output,
    public val webAppRoutingIdentities:
    Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterWebAppRoutingArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterWebAppRoutingArgs.builder()
            .dnsZoneId(dnsZoneId.applyValue({ args0 -> args0 }))
            .webAppRoutingIdentities(
                webAppRoutingIdentities?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            ).build()
}

/**
 * Builder for [KubernetesClusterWebAppRoutingArgs].
 */
@PulumiTagMarker
public class KubernetesClusterWebAppRoutingArgsBuilder internal constructor() {
    private var dnsZoneId: Output? = null

    private var webAppRoutingIdentities:
        Output>? = null

    /**
     * @param value Specifies the ID of the DNS Zone in which DNS entries are created for applications deployed to the cluster when Web App Routing is enabled. For Bring-Your-Own DNS zones this property should be set to an empty string `""`.
     */
    @JvmName("pphqpmvasnnrjqff")
    public suspend fun dnsZoneId(`value`: Output) {
        this.dnsZoneId = value
    }

    /**
     * @param value A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("jbfpwmdxgeparumy")
    public suspend
    fun webAppRoutingIdentities(`value`: Output>) {
        this.webAppRoutingIdentities = value
    }

    @JvmName("lwpsfhoshgutcvlt")
    public suspend fun webAppRoutingIdentities(
        vararg
        values: Output,
    ) {
        this.webAppRoutingIdentities = Output.all(values.asList())
    }

    /**
     * @param values A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("jfptelaelrlsxcgg")
    public suspend
    fun webAppRoutingIdentities(values: List>) {
        this.webAppRoutingIdentities = Output.all(values)
    }

    /**
     * @param value Specifies the ID of the DNS Zone in which DNS entries are created for applications deployed to the cluster when Web App Routing is enabled. For Bring-Your-Own DNS zones this property should be set to an empty string `""`.
     */
    @JvmName("hyvwtfnrbmbmcbxh")
    public suspend fun dnsZoneId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dnsZoneId = mapped
    }

    /**
     * @param value A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("qrnrniirhxrkbwev")
    public suspend
    fun webAppRoutingIdentities(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.webAppRoutingIdentities = mapped
    }

    /**
     * @param argument A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("ggamvjcfqnamhfty")
    public suspend
    fun webAppRoutingIdentities(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.webAppRoutingIdentities = mapped
    }

    /**
     * @param argument A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("ydfwvpjdcdxwmmlx")
    public suspend fun webAppRoutingIdentities(
        vararg
        argument: suspend KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgsBuilder.() -> Unit,
    ) {
        val toBeMapped = argument.toList().map {
            KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.webAppRoutingIdentities = mapped
    }

    /**
     * @param argument A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("atttvxydabgtcaqk")
    public suspend
    fun webAppRoutingIdentities(argument: suspend KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgsBuilder().applySuspend {
                    argument()
                }.build(),
            )
        val mapped = of(toBeMapped)
        this.webAppRoutingIdentities = mapped
    }

    /**
     * @param values A `web_app_routing_identity` block is exported. The exported attributes are defined below.
     */
    @JvmName("fpqxgrqrocrndnbs")
    public suspend fun webAppRoutingIdentities(
        vararg
        values: KubernetesClusterWebAppRoutingWebAppRoutingIdentityArgs,
    ) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.webAppRoutingIdentities = mapped
    }

    internal fun build(): KubernetesClusterWebAppRoutingArgs = KubernetesClusterWebAppRoutingArgs(
        dnsZoneId = dnsZoneId ?: throw PulumiNullFieldException("dnsZoneId"),
        webAppRoutingIdentities = webAppRoutingIdentities,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy