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

com.pulumi.azure.containerservice.kotlin.inputs.KubernetesClusterServiceMeshProfileArgs.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.KubernetesClusterServiceMeshProfileArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 *
 * @property certificateAuthority A `certificate_authority` block as defined below. When this property is specified, `key_vault_secrets_provider` is also required to be set. This configuration allows you to bring your own root certificate and keys for Istio CA in the Istio-based service mesh add-on for Azure Kubernetes Service.
 * @property externalIngressGatewayEnabled Is Istio External Ingress Gateway enabled?
 * > **NOTE:** Currently only one Internal Ingress Gateway and one External Ingress Gateway are allowed per cluster
 * @property internalIngressGatewayEnabled Is Istio Internal Ingress Gateway enabled?
 * @property mode The mode of the service mesh. Possible value is `Istio`.
 */
public data class KubernetesClusterServiceMeshProfileArgs(
    public val certificateAuthority: Output? = null,
    public val externalIngressGatewayEnabled: Output? = null,
    public val internalIngressGatewayEnabled: Output? = null,
    public val mode: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.containerservice.inputs.KubernetesClusterServiceMeshProfileArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterServiceMeshProfileArgs.builder()
            .certificateAuthority(
                certificateAuthority?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .externalIngressGatewayEnabled(externalIngressGatewayEnabled?.applyValue({ args0 -> args0 }))
            .internalIngressGatewayEnabled(internalIngressGatewayEnabled?.applyValue({ args0 -> args0 }))
            .mode(mode.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KubernetesClusterServiceMeshProfileArgs].
 */
@PulumiTagMarker
public class KubernetesClusterServiceMeshProfileArgsBuilder internal constructor() {
    private var certificateAuthority:
        Output? = null

    private var externalIngressGatewayEnabled: Output? = null

    private var internalIngressGatewayEnabled: Output? = null

    private var mode: Output? = null

    /**
     * @param value A `certificate_authority` block as defined below. When this property is specified, `key_vault_secrets_provider` is also required to be set. This configuration allows you to bring your own root certificate and keys for Istio CA in the Istio-based service mesh add-on for Azure Kubernetes Service.
     */
    @JvmName("rtebgdpawehutaud")
    public suspend fun certificateAuthority(`value`: Output) {
        this.certificateAuthority = value
    }

    /**
     * @param value Is Istio External Ingress Gateway enabled?
     * > **NOTE:** Currently only one Internal Ingress Gateway and one External Ingress Gateway are allowed per cluster
     */
    @JvmName("asawjuibrtwkaity")
    public suspend fun externalIngressGatewayEnabled(`value`: Output) {
        this.externalIngressGatewayEnabled = value
    }

    /**
     * @param value Is Istio Internal Ingress Gateway enabled?
     */
    @JvmName("hmqtuggdddsxgmhu")
    public suspend fun internalIngressGatewayEnabled(`value`: Output) {
        this.internalIngressGatewayEnabled = value
    }

    /**
     * @param value The mode of the service mesh. Possible value is `Istio`.
     */
    @JvmName("flpmvjdtlifoadug")
    public suspend fun mode(`value`: Output) {
        this.mode = value
    }

    /**
     * @param value A `certificate_authority` block as defined below. When this property is specified, `key_vault_secrets_provider` is also required to be set. This configuration allows you to bring your own root certificate and keys for Istio CA in the Istio-based service mesh add-on for Azure Kubernetes Service.
     */
    @JvmName("ucsaexfnprggslhv")
    public suspend fun certificateAuthority(`value`: KubernetesClusterServiceMeshProfileCertificateAuthorityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.certificateAuthority = mapped
    }

    /**
     * @param argument A `certificate_authority` block as defined below. When this property is specified, `key_vault_secrets_provider` is also required to be set. This configuration allows you to bring your own root certificate and keys for Istio CA in the Istio-based service mesh add-on for Azure Kubernetes Service.
     */
    @JvmName("xupydlppcvmtlwoq")
    public suspend fun certificateAuthority(argument: suspend KubernetesClusterServiceMeshProfileCertificateAuthorityArgsBuilder.() -> Unit) {
        val toBeMapped =
            KubernetesClusterServiceMeshProfileCertificateAuthorityArgsBuilder().applySuspend {
                argument()
            }.build()
        val mapped = of(toBeMapped)
        this.certificateAuthority = mapped
    }

    /**
     * @param value Is Istio External Ingress Gateway enabled?
     * > **NOTE:** Currently only one Internal Ingress Gateway and one External Ingress Gateway are allowed per cluster
     */
    @JvmName("pndivjwbcplybcsm")
    public suspend fun externalIngressGatewayEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.externalIngressGatewayEnabled = mapped
    }

    /**
     * @param value Is Istio Internal Ingress Gateway enabled?
     */
    @JvmName("bnwuuimnafpkfxov")
    public suspend fun internalIngressGatewayEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.internalIngressGatewayEnabled = mapped
    }

    /**
     * @param value The mode of the service mesh. Possible value is `Istio`.
     */
    @JvmName("xpytyldksnfelflj")
    public suspend fun mode(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mode = mapped
    }

    internal fun build(): KubernetesClusterServiceMeshProfileArgs =
        KubernetesClusterServiceMeshProfileArgs(
            certificateAuthority = certificateAuthority,
            externalIngressGatewayEnabled = externalIngressGatewayEnabled,
            internalIngressGatewayEnabled = internalIngressGatewayEnabled,
            mode = mode ?: throw PulumiNullFieldException("mode"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy