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

com.pulumi.azure.compute.kotlin.outputs.ManagedDiskEncryptionSettings.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.compute.kotlin.outputs

import kotlin.Boolean
import kotlin.Deprecated
import kotlin.Suppress

/**
 *
 * @property diskEncryptionKey A `disk_encryption_key` block as defined above.
 * @property enabled
 * @property keyEncryptionKey A `key_encryption_key` block as defined below.
 */
public data class ManagedDiskEncryptionSettings(
    public val diskEncryptionKey: ManagedDiskEncryptionSettingsDiskEncryptionKey? = null,
    @Deprecated(
        message = """
  Deprecated, Azure Disk Encryption is now configured directly by `disk_encryption_key` and
      `key_encryption_key`. To disable Azure Disk Encryption, please remove `encryption_settings`
      block. To enabled, specify a `encryption_settings` block`
  """,
    )
    public val enabled: Boolean? = null,
    public val keyEncryptionKey: ManagedDiskEncryptionSettingsKeyEncryptionKey? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.ManagedDiskEncryptionSettings):
            ManagedDiskEncryptionSettings = ManagedDiskEncryptionSettings(
            diskEncryptionKey = javaType.diskEncryptionKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.compute.kotlin.outputs.ManagedDiskEncryptionSettingsDiskEncryptionKey.Companion.toKotlin(args0)
                })
            }).orElse(null),
            enabled = javaType.enabled().map({ args0 -> args0 }).orElse(null),
            keyEncryptionKey = javaType.keyEncryptionKey().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.compute.kotlin.outputs.ManagedDiskEncryptionSettingsKeyEncryptionKey.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy