com.pulumi.azure.compute.kotlin.outputs.ManagedDiskEncryptionSettings.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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