![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.compute.kotlin.inputs.EncryptionSettingsCollectionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.compute.kotlin.inputs
import com.pulumi.azurenative.compute.inputs.EncryptionSettingsCollectionArgs.builder
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.collections.List
import kotlin.jvm.JvmName
/**
* Encryption settings for disk or snapshot
* @property enabled Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
* @property encryptionSettings A collection of encryption settings, one for each disk volume.
* @property encryptionSettingsVersion Describes what type of encryption is used for the disks. Once this field is set, it cannot be overwritten. '1.0' corresponds to Azure Disk Encryption with AAD app.'1.1' corresponds to Azure Disk Encryption.
*/
public data class EncryptionSettingsCollectionArgs(
public val enabled: Output,
public val encryptionSettings: Output>? = null,
public val encryptionSettingsVersion: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.compute.inputs.EncryptionSettingsCollectionArgs =
com.pulumi.azurenative.compute.inputs.EncryptionSettingsCollectionArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.encryptionSettings(
encryptionSettings?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.encryptionSettingsVersion(encryptionSettingsVersion?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EncryptionSettingsCollectionArgs].
*/
@PulumiTagMarker
public class EncryptionSettingsCollectionArgsBuilder internal constructor() {
private var enabled: Output? = null
private var encryptionSettings: Output>? = null
private var encryptionSettingsVersion: Output? = null
/**
* @param value Set this flag to true and provide DiskEncryptionKey and optional KeyEncryptionKey to enable encryption. Set this flag to false and remove DiskEncryptionKey and KeyEncryptionKey to disable encryption. If EncryptionSettings is null in the request object, the existing settings remain unchanged.
*/
@JvmName("qutbpkstbpfbsjwb")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value A collection of encryption settings, one for each disk volume.
*/
@JvmName("etjajpkasiqnnoae")
public suspend fun encryptionSettings(`value`: Output>) {
this.encryptionSettings = value
}
@JvmName("yptuhwibelcbfcxu")
public suspend fun encryptionSettings(vararg values: Output) {
this.encryptionSettings = Output.all(values.asList())
}
/**
* @param values A collection of encryption settings, one for each disk volume.
*/
@JvmName("ledmwkdehwicyilt")
public suspend fun encryptionSettings(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy