All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.recoveryservices.kotlin.outputs.VaultEncryption.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.recoveryservices.kotlin.outputs

import kotlin.Boolean
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property infrastructureEncryptionEnabled Enabling/Disabling the Double Encryption state.
 * @property keyId The Key Vault key id used to encrypt this vault. Key managed by Vault Managed Hardware Security Module is also supported.
 * @property useSystemAssignedIdentity Indicate that system assigned identity should be used or not. Defaults to `true`. Must be set to `false` when `user_assigned_identity_id` is set.
 * !> **Note:** `use_system_assigned_identity` only be able to set to `false` for **new** vaults. Any vaults containing existing items registered or attempted to be registered to it are not supported. Details can be found in [the document](https://learn.microsoft.com/en-us/azure/backup/encryption-at-rest-with-cmk?tabs=portal#before-you-start)
 * !> **Note:** Once `infrastructure_encryption_enabled` has been set it's not possible to change it.
 * @property userAssignedIdentityId Specifies the user assigned identity ID to be used.
 */
public data class VaultEncryption(
    public val infrastructureEncryptionEnabled: Boolean,
    public val keyId: String,
    public val useSystemAssignedIdentity: Boolean? = null,
    public val userAssignedIdentityId: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.recoveryservices.outputs.VaultEncryption): VaultEncryption = VaultEncryption(
            infrastructureEncryptionEnabled = javaType.infrastructureEncryptionEnabled(),
            keyId = javaType.keyId(),
            useSystemAssignedIdentity = javaType.useSystemAssignedIdentity().map({ args0 ->
                args0
            }).orElse(null),
            userAssignedIdentityId = javaType.userAssignedIdentityId().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy