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

com.pulumi.azure.recoveryservices.kotlin.inputs.VaultEncryptionArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.recoveryservices.kotlin.inputs

import com.pulumi.azure.recoveryservices.inputs.VaultEncryptionArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @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 VaultEncryptionArgs(
    public val infrastructureEncryptionEnabled: Output,
    public val keyId: Output,
    public val useSystemAssignedIdentity: Output? = null,
    public val userAssignedIdentityId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.recoveryservices.inputs.VaultEncryptionArgs =
        com.pulumi.azure.recoveryservices.inputs.VaultEncryptionArgs.builder()
            .infrastructureEncryptionEnabled(infrastructureEncryptionEnabled.applyValue({ args0 -> args0 }))
            .keyId(keyId.applyValue({ args0 -> args0 }))
            .useSystemAssignedIdentity(useSystemAssignedIdentity?.applyValue({ args0 -> args0 }))
            .userAssignedIdentityId(userAssignedIdentityId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VaultEncryptionArgs].
 */
@PulumiTagMarker
public class VaultEncryptionArgsBuilder internal constructor() {
    private var infrastructureEncryptionEnabled: Output? = null

    private var keyId: Output? = null

    private var useSystemAssignedIdentity: Output? = null

    private var userAssignedIdentityId: Output? = null

    /**
     * @param value Enabling/Disabling the Double Encryption state.
     */
    @JvmName("lukjeemlytivahis")
    public suspend fun infrastructureEncryptionEnabled(`value`: Output) {
        this.infrastructureEncryptionEnabled = value
    }

    /**
     * @param value The Key Vault key id used to encrypt this vault. Key managed by Vault Managed Hardware Security Module is also supported.
     */
    @JvmName("seengqkmylljigca")
    public suspend fun keyId(`value`: Output) {
        this.keyId = value
    }

    /**
     * @param value 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.
     */
    @JvmName("apyhgrrfywvojlab")
    public suspend fun useSystemAssignedIdentity(`value`: Output) {
        this.useSystemAssignedIdentity = value
    }

    /**
     * @param value Specifies the user assigned identity ID to be used.
     */
    @JvmName("gnqldcvgptkdnfhh")
    public suspend fun userAssignedIdentityId(`value`: Output) {
        this.userAssignedIdentityId = value
    }

    /**
     * @param value Enabling/Disabling the Double Encryption state.
     */
    @JvmName("rdmxolltlvbwsqpf")
    public suspend fun infrastructureEncryptionEnabled(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.infrastructureEncryptionEnabled = mapped
    }

    /**
     * @param value The Key Vault key id used to encrypt this vault. Key managed by Vault Managed Hardware Security Module is also supported.
     */
    @JvmName("ureuiwaudeocbvru")
    public suspend fun keyId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyId = mapped
    }

    /**
     * @param value 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.
     */
    @JvmName("swtvbepljwqsbujt")
    public suspend fun useSystemAssignedIdentity(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.useSystemAssignedIdentity = mapped
    }

    /**
     * @param value Specifies the user assigned identity ID to be used.
     */
    @JvmName("buwtbgewqcvpfcax")
    public suspend fun userAssignedIdentityId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userAssignedIdentityId = mapped
    }

    internal fun build(): VaultEncryptionArgs = VaultEncryptionArgs(
        infrastructureEncryptionEnabled = infrastructureEncryptionEnabled ?: throw
            PulumiNullFieldException("infrastructureEncryptionEnabled"),
        keyId = keyId ?: throw PulumiNullFieldException("keyId"),
        useSystemAssignedIdentity = useSystemAssignedIdentity,
        userAssignedIdentityId = userAssignedIdentityId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy