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

com.pulumi.azure.compute.kotlin.inputs.SnapshotEncryptionSettingsKeyEncryptionKeyArgs.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.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsKeyEncryptionKeyArgs.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 keyUrl The URL to the Key Vault Key used as the Key Encryption Key. This can be found as `id` on the `azure.keyvault.Key` resource.
 * @property sourceVaultId The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
 */
public data class SnapshotEncryptionSettingsKeyEncryptionKeyArgs(
    public val keyUrl: Output,
    public val sourceVaultId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsKeyEncryptionKeyArgs =
        com.pulumi.azure.compute.inputs.SnapshotEncryptionSettingsKeyEncryptionKeyArgs.builder()
            .keyUrl(keyUrl.applyValue({ args0 -> args0 }))
            .sourceVaultId(sourceVaultId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [SnapshotEncryptionSettingsKeyEncryptionKeyArgs].
 */
@PulumiTagMarker
public class SnapshotEncryptionSettingsKeyEncryptionKeyArgsBuilder internal constructor() {
    private var keyUrl: Output? = null

    private var sourceVaultId: Output? = null

    /**
     * @param value The URL to the Key Vault Key used as the Key Encryption Key. This can be found as `id` on the `azure.keyvault.Key` resource.
     */
    @JvmName("ycgmmrkstojjwdbu")
    public suspend fun keyUrl(`value`: Output) {
        this.keyUrl = value
    }

    /**
     * @param value The ID of the source Key Vault. This can be found as `id` on the `azure.keyvault.KeyVault` resource.
     */
    @JvmName("bpcnhejvmvqglqbs")
    public suspend fun sourceVaultId(`value`: Output) {
        this.sourceVaultId = value
    }

    /**
     * @param value The URL to the Key Vault Key used as the Key Encryption Key. This can be found as `id` on the `azure.keyvault.Key` resource.
     */
    @JvmName("aahmhijlkwalcwaw")
    public suspend fun keyUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUrl = mapped
    }

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

    internal fun build(): SnapshotEncryptionSettingsKeyEncryptionKeyArgs =
        SnapshotEncryptionSettingsKeyEncryptionKeyArgs(
            keyUrl = keyUrl ?: throw PulumiNullFieldException("keyUrl"),
            sourceVaultId = sourceVaultId ?: throw PulumiNullFieldException("sourceVaultId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy