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

com.pulumi.azure.siterecovery.kotlin.inputs.ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs.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.siterecovery.kotlin.inputs

import com.pulumi.azure.siterecovery.inputs.ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs.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 secretUrl The URL to the Key Vault Secret used as the Disk Encryption Key that the Managed Disk will be associated with. This can be found as `id` on the `azure.keyvault.Secret` resource. Changing this forces a new resource to be created.
 * @property vaultId The ID of the Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource. Changing this forces a new resource to be created.
 */
public data class ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs(
    public val secretUrl: Output,
    public val vaultId: Output,
) :
    ConvertibleToJava {
    override fun toJava():
        com.pulumi.azure.siterecovery.inputs.ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs =
        com.pulumi.azure.siterecovery.inputs.ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs.builder()
            .secretUrl(secretUrl.applyValue({ args0 -> args0 }))
            .vaultId(vaultId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs].
 */
@PulumiTagMarker
public class ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgsBuilder internal
constructor() {
    private var secretUrl: Output? = null

    private var vaultId: Output? = null

    /**
     * @param value The URL to the Key Vault Secret used as the Disk Encryption Key that the Managed Disk will be associated with. This can be found as `id` on the `azure.keyvault.Secret` resource. Changing this forces a new resource to be created.
     */
    @JvmName("nnntlitxktuwrbgu")
    public suspend fun secretUrl(`value`: Output) {
        this.secretUrl = value
    }

    /**
     * @param value The ID of the Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource. Changing this forces a new resource to be created.
     */
    @JvmName("aijmurbdiufdhvkl")
    public suspend fun vaultId(`value`: Output) {
        this.vaultId = value
    }

    /**
     * @param value The URL to the Key Vault Secret used as the Disk Encryption Key that the Managed Disk will be associated with. This can be found as `id` on the `azure.keyvault.Secret` resource. Changing this forces a new resource to be created.
     */
    @JvmName("fwsufnwkbkuypryp")
    public suspend fun secretUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretUrl = mapped
    }

    /**
     * @param value The ID of the Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource. Changing this forces a new resource to be created.
     */
    @JvmName("lmvoojexlukrhcfi")
    public suspend fun vaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vaultId = mapped
    }

    internal fun build(): ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs =
        ReplicatedVMManagedDiskTargetDiskEncryptionDiskEncryptionKeyArgs(
            secretUrl = secretUrl ?: throw PulumiNullFieldException("secretUrl"),
            vaultId = vaultId ?: throw PulumiNullFieldException("vaultId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy