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

com.pulumi.azurenative.storagecache.kotlin.inputs.KeyVaultKeyReferenceArgs.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.storagecache.kotlin.inputs

import com.pulumi.azurenative.storagecache.inputs.KeyVaultKeyReferenceArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Describes a reference to key vault key.
 * @property keyUrl The URL referencing a key encryption key in key vault.
 * @property sourceVault Describes a resource Id to source key vault.
 */
public data class KeyVaultKeyReferenceArgs(
    public val keyUrl: Output,
    public val sourceVault: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.storagecache.inputs.KeyVaultKeyReferenceArgs =
        com.pulumi.azurenative.storagecache.inputs.KeyVaultKeyReferenceArgs.builder()
            .keyUrl(keyUrl.applyValue({ args0 -> args0 }))
            .sourceVault(sourceVault.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var sourceVault: Output? = null

    /**
     * @param value The URL referencing a key encryption key in key vault.
     */
    @JvmName("utveobehraxcewip")
    public suspend fun keyUrl(`value`: Output) {
        this.keyUrl = value
    }

    /**
     * @param value Describes a resource Id to source key vault.
     */
    @JvmName("phfaqhhtrfgyjxth")
    public suspend fun sourceVault(`value`: Output) {
        this.sourceVault = value
    }

    /**
     * @param value The URL referencing a key encryption key in key vault.
     */
    @JvmName("cytiorovhahwhdna")
    public suspend fun keyUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyUrl = mapped
    }

    /**
     * @param value Describes a resource Id to source key vault.
     */
    @JvmName("uvqffbpeifldhhwm")
    public suspend fun sourceVault(`value`: KeyVaultKeyReferenceSourceVaultArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceVault = mapped
    }

    /**
     * @param argument Describes a resource Id to source key vault.
     */
    @JvmName("sohutjxoegfdklux")
    public suspend fun sourceVault(argument: suspend KeyVaultKeyReferenceSourceVaultArgsBuilder.() -> Unit) {
        val toBeMapped = KeyVaultKeyReferenceSourceVaultArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceVault = mapped
    }

    internal fun build(): KeyVaultKeyReferenceArgs = KeyVaultKeyReferenceArgs(
        keyUrl = keyUrl ?: throw PulumiNullFieldException("keyUrl"),
        sourceVault = sourceVault ?: throw PulumiNullFieldException("sourceVault"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy