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

com.pulumi.azurenative.datafactory.kotlin.inputs.AzureKeyVaultSecretReferenceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.datafactory.kotlin.inputs

import com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs.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.Any
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * Azure Key Vault secret reference.
 * @property secretName The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
 * @property secretVersion The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
 * @property store The Azure Key Vault linked service reference.
 * @property type Type of the secret.
 * Expected value is 'AzureKeyVaultSecret'.
 */
public data class AzureKeyVaultSecretReferenceArgs(
    public val secretName: Output,
    public val secretVersion: Output? = null,
    public val store: Output,
    public val type: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs = com.pulumi.azurenative.datafactory.inputs.AzureKeyVaultSecretReferenceArgs.builder()
        .secretName(secretName.applyValue({ args0 -> args0 }))
        .secretVersion(secretVersion?.applyValue({ args0 -> args0 }))
        .store(store.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .type(type.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [AzureKeyVaultSecretReferenceArgs].
 */
@PulumiTagMarker
public class AzureKeyVaultSecretReferenceArgsBuilder internal constructor() {
    private var secretName: Output? = null

    private var secretVersion: Output? = null

    private var store: Output? = null

    private var type: Output? = null

    /**
     * @param value The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
     */
    @JvmName("ajfqilsltigbxqlp")
    public suspend fun secretName(`value`: Output) {
        this.secretName = value
    }

    /**
     * @param value The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
     */
    @JvmName("bmfmnxoreceshycr")
    public suspend fun secretVersion(`value`: Output) {
        this.secretVersion = value
    }

    /**
     * @param value The Azure Key Vault linked service reference.
     */
    @JvmName("keeunihdrpuilcae")
    public suspend fun store(`value`: Output) {
        this.store = value
    }

    /**
     * @param value Type of the secret.
     * Expected value is 'AzureKeyVaultSecret'.
     */
    @JvmName("epkhfslvthvlfjlw")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string).
     */
    @JvmName("vfyvrmuhrsbdiqel")
    public suspend fun secretName(`value`: Any) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretName = mapped
    }

    /**
     * @param value The version of the secret in Azure Key Vault. The default value is the latest version of the secret. Type: string (or Expression with resultType string).
     */
    @JvmName("kpjbmimdcckjgivk")
    public suspend fun secretVersion(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretVersion = mapped
    }

    /**
     * @param value The Azure Key Vault linked service reference.
     */
    @JvmName("yilldydbveesuupd")
    public suspend fun store(`value`: LinkedServiceReferenceArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.store = mapped
    }

    /**
     * @param argument The Azure Key Vault linked service reference.
     */
    @JvmName("knaxkxojkxwxowhx")
    public suspend fun store(argument: suspend LinkedServiceReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = LinkedServiceReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.store = mapped
    }

    /**
     * @param value Type of the secret.
     * Expected value is 'AzureKeyVaultSecret'.
     */
    @JvmName("obajnvotcpmflyit")
    public suspend fun type(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): AzureKeyVaultSecretReferenceArgs = AzureKeyVaultSecretReferenceArgs(
        secretName = secretName ?: throw PulumiNullFieldException("secretName"),
        secretVersion = secretVersion,
        store = store ?: throw PulumiNullFieldException("store"),
        type = type ?: throw PulumiNullFieldException("type"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy