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

com.pulumi.azurenative.compute.kotlin.inputs.EncryptionSettingsElementArgs.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.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.EncryptionSettingsElementArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Encryption settings for one disk volume.
 * @property diskEncryptionKey Key Vault Secret Url and vault id of the disk encryption key
 * @property keyEncryptionKey Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
 */
public data class EncryptionSettingsElementArgs(
    public val diskEncryptionKey: Output? = null,
    public val keyEncryptionKey: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.EncryptionSettingsElementArgs =
        com.pulumi.azurenative.compute.inputs.EncryptionSettingsElementArgs.builder()
            .diskEncryptionKey(diskEncryptionKey?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .keyEncryptionKey(
                keyEncryptionKey?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [EncryptionSettingsElementArgs].
 */
@PulumiTagMarker
public class EncryptionSettingsElementArgsBuilder internal constructor() {
    private var diskEncryptionKey: Output? = null

    private var keyEncryptionKey: Output? = null

    /**
     * @param value Key Vault Secret Url and vault id of the disk encryption key
     */
    @JvmName("skykojhpxvhenyxh")
    public suspend fun diskEncryptionKey(`value`: Output) {
        this.diskEncryptionKey = value
    }

    /**
     * @param value Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
     */
    @JvmName("mcpntpapqcyorqme")
    public suspend fun keyEncryptionKey(`value`: Output) {
        this.keyEncryptionKey = value
    }

    /**
     * @param value Key Vault Secret Url and vault id of the disk encryption key
     */
    @JvmName("ukgaoevibcvtcsnv")
    public suspend fun diskEncryptionKey(`value`: KeyVaultAndSecretReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.diskEncryptionKey = mapped
    }

    /**
     * @param argument Key Vault Secret Url and vault id of the disk encryption key
     */
    @JvmName("xfvcmlheevgoibls")
    public suspend fun diskEncryptionKey(argument: suspend KeyVaultAndSecretReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = KeyVaultAndSecretReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.diskEncryptionKey = mapped
    }

    /**
     * @param value Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
     */
    @JvmName("occnadabirvgmskf")
    public suspend fun keyEncryptionKey(`value`: KeyVaultAndKeyReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.keyEncryptionKey = mapped
    }

    /**
     * @param argument Key Vault Key Url and vault id of the key encryption key. KeyEncryptionKey is optional and when provided is used to unwrap the disk encryption key.
     */
    @JvmName("nkfmifrmaloqmfph")
    public suspend fun keyEncryptionKey(argument: suspend KeyVaultAndKeyReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = KeyVaultAndKeyReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.keyEncryptionKey = mapped
    }

    internal fun build(): EncryptionSettingsElementArgs = EncryptionSettingsElementArgs(
        diskEncryptionKey = diskEncryptionKey,
        keyEncryptionKey = keyEncryptionKey,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy