com.pulumi.azure.mysql.kotlin.inputs.FlexibleServerCustomerManagedKeyArgs.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.mysql.kotlin.inputs
import com.pulumi.azure.mysql.inputs.FlexibleServerCustomerManagedKeyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property geoBackupKeyVaultKeyId The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
* @property geoBackupUserAssignedIdentityId The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
* > **NOTE:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
* @property keyVaultKeyId The ID of the Key Vault Key.
* @property primaryUserAssignedIdentityId Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
*/
public data class FlexibleServerCustomerManagedKeyArgs(
public val geoBackupKeyVaultKeyId: Output? = null,
public val geoBackupUserAssignedIdentityId: Output? = null,
public val keyVaultKeyId: Output? = null,
public val primaryUserAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mysql.inputs.FlexibleServerCustomerManagedKeyArgs =
com.pulumi.azure.mysql.inputs.FlexibleServerCustomerManagedKeyArgs.builder()
.geoBackupKeyVaultKeyId(geoBackupKeyVaultKeyId?.applyValue({ args0 -> args0 }))
.geoBackupUserAssignedIdentityId(geoBackupUserAssignedIdentityId?.applyValue({ args0 -> args0 }))
.keyVaultKeyId(keyVaultKeyId?.applyValue({ args0 -> args0 }))
.primaryUserAssignedIdentityId(
primaryUserAssignedIdentityId?.applyValue({ args0 ->
args0
}),
).build()
}
/**
* Builder for [FlexibleServerCustomerManagedKeyArgs].
*/
@PulumiTagMarker
public class FlexibleServerCustomerManagedKeyArgsBuilder internal constructor() {
private var geoBackupKeyVaultKeyId: Output? = null
private var geoBackupUserAssignedIdentityId: Output? = null
private var keyVaultKeyId: Output? = null
private var primaryUserAssignedIdentityId: Output? = null
/**
* @param value The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
*/
@JvmName("rtubqwlrpuhduxbb")
public suspend fun geoBackupKeyVaultKeyId(`value`: Output) {
this.geoBackupKeyVaultKeyId = value
}
/**
* @param value The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
* > **NOTE:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
*/
@JvmName("iorsbfrbphjosscb")
public suspend fun geoBackupUserAssignedIdentityId(`value`: Output) {
this.geoBackupUserAssignedIdentityId = value
}
/**
* @param value The ID of the Key Vault Key.
*/
@JvmName("mediaxkvqxgfdyhx")
public suspend fun keyVaultKeyId(`value`: Output) {
this.keyVaultKeyId = value
}
/**
* @param value Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
*/
@JvmName("iecjdvnupdjjsipu")
public suspend fun primaryUserAssignedIdentityId(`value`: Output) {
this.primaryUserAssignedIdentityId = value
}
/**
* @param value The ID of the geo backup Key Vault Key. It can't cross region and need Customer Managed Key in same region as geo backup.
*/
@JvmName("oyulyctfadjyowra")
public suspend fun geoBackupKeyVaultKeyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.geoBackupKeyVaultKeyId = mapped
}
/**
* @param value The geo backup user managed identity id for a Customer Managed Key. Should be added with `identity_ids`. It can't cross region and need identity in same region as geo backup.
* > **NOTE:** `primary_user_assigned_identity_id` or `geo_backup_user_assigned_identity_id` is required when `type` is set to `UserAssigned` or `SystemAssigned, UserAssigned`.
*/
@JvmName("oxtklgdysdjtaavo")
public suspend fun geoBackupUserAssignedIdentityId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.geoBackupUserAssignedIdentityId = mapped
}
/**
* @param value The ID of the Key Vault Key.
*/
@JvmName("mdrdlaugqmyybawb")
public suspend fun keyVaultKeyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.keyVaultKeyId = mapped
}
/**
* @param value Specifies the primary user managed identity id for a Customer Managed Key. Should be added with `identity_ids`.
*/
@JvmName("exkbuehpjughlcov")
public suspend fun primaryUserAssignedIdentityId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.primaryUserAssignedIdentityId = mapped
}
internal fun build(): FlexibleServerCustomerManagedKeyArgs = FlexibleServerCustomerManagedKeyArgs(
geoBackupKeyVaultKeyId = geoBackupKeyVaultKeyId,
geoBackupUserAssignedIdentityId = geoBackupUserAssignedIdentityId,
keyVaultKeyId = keyVaultKeyId,
primaryUserAssignedIdentityId = primaryUserAssignedIdentityId,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy