
com.pulumi.azure.cognitive.kotlin.inputs.AccountCustomerManagedKeyArgs.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.cognitive.kotlin.inputs
import com.pulumi.azure.cognitive.inputs.AccountCustomerManagedKeyArgs.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.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property identityClientId The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
* @property keyVaultKeyId The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
*/
public data class AccountCustomerManagedKeyArgs(
public val identityClientId: Output? = null,
public val keyVaultKeyId: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.cognitive.inputs.AccountCustomerManagedKeyArgs =
com.pulumi.azure.cognitive.inputs.AccountCustomerManagedKeyArgs.builder()
.identityClientId(identityClientId?.applyValue({ args0 -> args0 }))
.keyVaultKeyId(keyVaultKeyId.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [AccountCustomerManagedKeyArgs].
*/
@PulumiTagMarker
public class AccountCustomerManagedKeyArgsBuilder internal constructor() {
private var identityClientId: Output? = null
private var keyVaultKeyId: Output? = null
/**
* @param value The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
*/
@JvmName("msgonygfdmxymnxt")
public suspend fun identityClientId(`value`: Output) {
this.identityClientId = value
}
/**
* @param value The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
*/
@JvmName("nmsddayuqpchgpit")
public suspend fun keyVaultKeyId(`value`: Output) {
this.keyVaultKeyId = value
}
/**
* @param value The Client ID of the User Assigned Identity that has access to the key. This property only needs to be specified when there're multiple identities attached to the Cognitive Account.
*/
@JvmName("jmismgfpnigswswc")
public suspend fun identityClientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.identityClientId = mapped
}
/**
* @param value The ID of the Key Vault Key which should be used to Encrypt the data in this Cognitive Account.
*/
@JvmName("ytaovceovlvqbruo")
public suspend fun keyVaultKeyId(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.keyVaultKeyId = mapped
}
internal fun build(): AccountCustomerManagedKeyArgs = AccountCustomerManagedKeyArgs(
identityClientId = identityClientId,
keyVaultKeyId = keyVaultKeyId ?: throw PulumiNullFieldException("keyVaultKeyId"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy