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

com.pulumi.azurenative.compute.kotlin.inputs.KeyVaultSecretReferenceArgs.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.compute.kotlin.inputs

import com.pulumi.azurenative.compute.inputs.KeyVaultSecretReferenceArgs.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 Secret
 * @property secretUrl The URL referencing a secret in a Key Vault.
 * @property sourceVault The relative URL of the Key Vault containing the secret.
 */
public data class KeyVaultSecretReferenceArgs(
    public val secretUrl: Output,
    public val sourceVault: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.compute.inputs.KeyVaultSecretReferenceArgs =
        com.pulumi.azurenative.compute.inputs.KeyVaultSecretReferenceArgs.builder()
            .secretUrl(secretUrl.applyValue({ args0 -> args0 }))
            .sourceVault(sourceVault.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var sourceVault: Output? = null

    /**
     * @param value The URL referencing a secret in a Key Vault.
     */
    @JvmName("etljorpomlyoolhb")
    public suspend fun secretUrl(`value`: Output) {
        this.secretUrl = value
    }

    /**
     * @param value The relative URL of the Key Vault containing the secret.
     */
    @JvmName("aosoiiqqedipmtxq")
    public suspend fun sourceVault(`value`: Output) {
        this.sourceVault = value
    }

    /**
     * @param value The URL referencing a secret in a Key Vault.
     */
    @JvmName("gpeysjswjtsbfyrj")
    public suspend fun secretUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretUrl = mapped
    }

    /**
     * @param value The relative URL of the Key Vault containing the secret.
     */
    @JvmName("vimknesmshcbceri")
    public suspend fun sourceVault(`value`: SubResourceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceVault = mapped
    }

    /**
     * @param argument The relative URL of the Key Vault containing the secret.
     */
    @JvmName("vycakewmuukdjrae")
    public suspend fun sourceVault(argument: suspend SubResourceArgsBuilder.() -> Unit) {
        val toBeMapped = SubResourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceVault = mapped
    }

    internal fun build(): KeyVaultSecretReferenceArgs = KeyVaultSecretReferenceArgs(
        secretUrl = secretUrl ?: throw PulumiNullFieldException("secretUrl"),
        sourceVault = sourceVault ?: throw PulumiNullFieldException("sourceVault"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy