com.pulumi.azure.automation.kotlin.inputs.AccountEncryptionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.automation.kotlin.inputs
import com.pulumi.azure.automation.inputs.AccountEncryptionArgs.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 kotlin.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property keySource
* @property keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account.
* @property userAssignedIdentityId The User Assigned Managed Identity ID to be used for accessing the Customer Managed Key for encryption.
*/
public data class AccountEncryptionArgs(
@Deprecated(
message = """
This field is now ignored and will be removed in the next major version of the Azure Provider, the
`encryption` block can be omitted to disable encryption
""",
)
public val keySource: Output? = null,
public val keyVaultKeyId: Output,
public val userAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.automation.inputs.AccountEncryptionArgs =
com.pulumi.azure.automation.inputs.AccountEncryptionArgs.builder()
.keySource(keySource?.applyValue({ args0 -> args0 }))
.keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 }))
.userAssignedIdentityId(userAssignedIdentityId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountEncryptionArgs].
*/
@PulumiTagMarker
public class AccountEncryptionArgsBuilder internal constructor() {
private var keySource: Output? = null
private var keyVaultKeyId: Output? = null
private var userAssignedIdentityId: Output? = null
/**
* @param value
*/
@Deprecated(
message = """
This field is now ignored and will be removed in the next major version of the Azure Provider, the
`encryption` block can be omitted to disable encryption
""",
)
@JvmName("gsrdhxbfqafepqdb")
public suspend fun keySource(`value`: Output) {
this.keySource = value
}
/**
* @param value The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account.
*/
@JvmName("fjicxagrvmuittcl")
public suspend fun keyVaultKeyId(`value`: Output) {
this.keyVaultKeyId = value
}
/**
* @param value The User Assigned Managed Identity ID to be used for accessing the Customer Managed Key for encryption.
*/
@JvmName("ymkiqddhxggxkdeg")
public suspend fun userAssignedIdentityId(`value`: Output) {
this.userAssignedIdentityId = value
}
/**
* @param value
*/
@Deprecated(
message = """
This field is now ignored and will be removed in the next major version of the Azure Provider, the
`encryption` block can be omitted to disable encryption
""",
)
@JvmName("hgemwombveuhajej")
public suspend fun keySource(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keySource = mapped
}
/**
* @param value The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account.
*/
@JvmName("twvkvyqalorqiftv")
public suspend fun keyVaultKeyId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyVaultKeyId = mapped
}
/**
* @param value The User Assigned Managed Identity ID to be used for accessing the Customer Managed Key for encryption.
*/
@JvmName("xwpfdpecgpxkjcpr")
public suspend fun userAssignedIdentityId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userAssignedIdentityId = mapped
}
internal fun build(): AccountEncryptionArgs = AccountEncryptionArgs(
keySource = keySource,
keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
userAssignedIdentityId = userAssignedIdentityId,
)
}