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

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

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

import com.pulumi.azure.containerservice.inputs.KubernetesClusterStorageProfileArgs.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.jvm.JvmName

/**
 *
 * @property blobDriverEnabled Is the Blob CSI driver enabled? Defaults to `false`.
 * @property diskDriverEnabled Is the Disk CSI driver enabled? Defaults to `true`.
 * @property diskDriverVersion Disk CSI Driver version to be used. Possible values are `v1` and `v2`. Defaults to `v1`.
 * > **Note:** `Azure Disk CSI driver v2` is currently in [Public Preview](https://azure.microsoft.com/en-us/updates/public-preview-azure-disk-csi-driver-v2-in-aks/) on an opt-in basis. To use it, the feature `EnableAzureDiskCSIDriverV2` for namespace `Microsoft.ContainerService` must be requested.
 * @property fileDriverEnabled Is the File CSI driver enabled? Defaults to `true`.
 * @property snapshotControllerEnabled Is the Snapshot Controller enabled? Defaults to `true`.
 */
public data class KubernetesClusterStorageProfileArgs(
    public val blobDriverEnabled: Output? = null,
    public val diskDriverEnabled: Output? = null,
    public val diskDriverVersion: Output? = null,
    public val fileDriverEnabled: Output? = null,
    public val snapshotControllerEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.containerservice.inputs.KubernetesClusterStorageProfileArgs =
        com.pulumi.azure.containerservice.inputs.KubernetesClusterStorageProfileArgs.builder()
            .blobDriverEnabled(blobDriverEnabled?.applyValue({ args0 -> args0 }))
            .diskDriverEnabled(diskDriverEnabled?.applyValue({ args0 -> args0 }))
            .diskDriverVersion(diskDriverVersion?.applyValue({ args0 -> args0 }))
            .fileDriverEnabled(fileDriverEnabled?.applyValue({ args0 -> args0 }))
            .snapshotControllerEnabled(snapshotControllerEnabled?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [KubernetesClusterStorageProfileArgs].
 */
@PulumiTagMarker
public class KubernetesClusterStorageProfileArgsBuilder internal constructor() {
    private var blobDriverEnabled: Output? = null

    private var diskDriverEnabled: Output? = null

    private var diskDriverVersion: Output? = null

    private var fileDriverEnabled: Output? = null

    private var snapshotControllerEnabled: Output? = null

    /**
     * @param value Is the Blob CSI driver enabled? Defaults to `false`.
     */
    @JvmName("bbwfljbtskfywfes")
    public suspend fun blobDriverEnabled(`value`: Output) {
        this.blobDriverEnabled = value
    }

    /**
     * @param value Is the Disk CSI driver enabled? Defaults to `true`.
     */
    @JvmName("ojgeehjsvjnqlwhh")
    public suspend fun diskDriverEnabled(`value`: Output) {
        this.diskDriverEnabled = value
    }

    /**
     * @param value Disk CSI Driver version to be used. Possible values are `v1` and `v2`. Defaults to `v1`.
     * > **Note:** `Azure Disk CSI driver v2` is currently in [Public Preview](https://azure.microsoft.com/en-us/updates/public-preview-azure-disk-csi-driver-v2-in-aks/) on an opt-in basis. To use it, the feature `EnableAzureDiskCSIDriverV2` for namespace `Microsoft.ContainerService` must be requested.
     */
    @JvmName("umqkkktgqsildndh")
    public suspend fun diskDriverVersion(`value`: Output) {
        this.diskDriverVersion = value
    }

    /**
     * @param value Is the File CSI driver enabled? Defaults to `true`.
     */
    @JvmName("grloxxarvanglkyu")
    public suspend fun fileDriverEnabled(`value`: Output) {
        this.fileDriverEnabled = value
    }

    /**
     * @param value Is the Snapshot Controller enabled? Defaults to `true`.
     */
    @JvmName("asqqvtljspckbwnn")
    public suspend fun snapshotControllerEnabled(`value`: Output) {
        this.snapshotControllerEnabled = value
    }

    /**
     * @param value Is the Blob CSI driver enabled? Defaults to `false`.
     */
    @JvmName("kjpmnlrgjjnlcfjk")
    public suspend fun blobDriverEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.blobDriverEnabled = mapped
    }

    /**
     * @param value Is the Disk CSI driver enabled? Defaults to `true`.
     */
    @JvmName("uejenkaaodcgajdn")
    public suspend fun diskDriverEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskDriverEnabled = mapped
    }

    /**
     * @param value Disk CSI Driver version to be used. Possible values are `v1` and `v2`. Defaults to `v1`.
     * > **Note:** `Azure Disk CSI driver v2` is currently in [Public Preview](https://azure.microsoft.com/en-us/updates/public-preview-azure-disk-csi-driver-v2-in-aks/) on an opt-in basis. To use it, the feature `EnableAzureDiskCSIDriverV2` for namespace `Microsoft.ContainerService` must be requested.
     */
    @JvmName("ioehhuwoedmqxbik")
    public suspend fun diskDriverVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskDriverVersion = mapped
    }

    /**
     * @param value Is the File CSI driver enabled? Defaults to `true`.
     */
    @JvmName("ysdfbwpnegyitnlw")
    public suspend fun fileDriverEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.fileDriverEnabled = mapped
    }

    /**
     * @param value Is the Snapshot Controller enabled? Defaults to `true`.
     */
    @JvmName("jjrdeokjnicnggal")
    public suspend fun snapshotControllerEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.snapshotControllerEnabled = mapped
    }

    internal fun build(): KubernetesClusterStorageProfileArgs = KubernetesClusterStorageProfileArgs(
        blobDriverEnabled = blobDriverEnabled,
        diskDriverEnabled = diskDriverEnabled,
        diskDriverVersion = diskDriverVersion,
        fileDriverEnabled = fileDriverEnabled,
        snapshotControllerEnabled = snapshotControllerEnabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy