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

com.pulumi.azurenative.databricks.kotlin.inputs.ManagedDiskEncryptionArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.databricks.kotlin.inputs

import com.pulumi.azurenative.databricks.inputs.ManagedDiskEncryptionArgs.builder
import com.pulumi.azurenative.databricks.kotlin.enums.EncryptionKeySource
import com.pulumi.core.Either
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

/**
 * The object that contains details of encryption used on the workspace.
 * @property keySource The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Keyvault
 * @property keyVaultProperties Key Vault input properties for encryption.
 * @property rotationToLatestKeyVersionEnabled Indicate whether the latest key version should be automatically used for Managed Disk Encryption.
 */
public data class ManagedDiskEncryptionArgs(
    public val keySource: Output>,
    public val keyVaultProperties: Output,
    public val rotationToLatestKeyVersionEnabled: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.databricks.inputs.ManagedDiskEncryptionArgs =
        com.pulumi.azurenative.databricks.inputs.ManagedDiskEncryptionArgs.builder()
            .keySource(
                keySource.applyValue({ args0 ->
                    args0.transform({ args0 -> args0 }, { args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .keyVaultProperties(
                keyVaultProperties.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .rotationToLatestKeyVersionEnabled(
                rotationToLatestKeyVersionEnabled?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

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

    private var keyVaultProperties: Output? = null

    private var rotationToLatestKeyVersionEnabled: Output? = null

    /**
     * @param value The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Keyvault
     */
    @JvmName("ssimiqtgotfejvno")
    public suspend fun keySource(`value`: Output>) {
        this.keySource = value
    }

    /**
     * @param value Key Vault input properties for encryption.
     */
    @JvmName("udvkiliiacenmnoo")
    public suspend fun keyVaultProperties(`value`: Output) {
        this.keyVaultProperties = value
    }

    /**
     * @param value Indicate whether the latest key version should be automatically used for Managed Disk Encryption.
     */
    @JvmName("freqxxhqwdqhltki")
    public suspend fun rotationToLatestKeyVersionEnabled(`value`: Output) {
        this.rotationToLatestKeyVersionEnabled = value
    }

    /**
     * @param value The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Keyvault
     */
    @JvmName("ncxucwhajygpqgle")
    public suspend fun keySource(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keySource = mapped
    }

    /**
     * @param value The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Keyvault
     */
    @JvmName("iaqpyrsghatkiwdi")
    public fun keySource(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keySource = mapped
    }

    /**
     * @param value The encryption keySource (provider). Possible values (case-insensitive):  Microsoft.Keyvault
     */
    @JvmName("oowgklnqjblofpll")
    public fun keySource(`value`: EncryptionKeySource) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keySource = mapped
    }

    /**
     * @param value Key Vault input properties for encryption.
     */
    @JvmName("rrmpxiwwvyybtcgp")
    public suspend fun keyVaultProperties(`value`: ManagedDiskEncryptionKeyVaultPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultProperties = mapped
    }

    /**
     * @param argument Key Vault input properties for encryption.
     */
    @JvmName("umllmhidgqcqirwf")
    public suspend fun keyVaultProperties(argument: suspend ManagedDiskEncryptionKeyVaultPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = ManagedDiskEncryptionKeyVaultPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.keyVaultProperties = mapped
    }

    /**
     * @param value Indicate whether the latest key version should be automatically used for Managed Disk Encryption.
     */
    @JvmName("hjitmlfjmacwajxe")
    public suspend fun rotationToLatestKeyVersionEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.rotationToLatestKeyVersionEnabled = mapped
    }

    internal fun build(): ManagedDiskEncryptionArgs = ManagedDiskEncryptionArgs(
        keySource = keySource ?: throw PulumiNullFieldException("keySource"),
        keyVaultProperties = keyVaultProperties ?: throw PulumiNullFieldException("keyVaultProperties"),
        rotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy