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

com.pulumi.azure.compute.kotlin.inputs.OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azure.compute.kotlin.inputs

import com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs.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 which stores the protected settings.
 * @property sourceVaultId The ID of the source Key Vault.
 */
public data class OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs(
    public val secretUrl: Output,
    public val sourceVaultId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs =
        com.pulumi.azure.compute.inputs.OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs.builder()
            .secretUrl(secretUrl.applyValue({ args0 -> args0 }))
            .sourceVaultId(sourceVaultId.applyValue({ args0 -> args0 })).build()
}

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

    private var sourceVaultId: Output? = null

    /**
     * @param value The URL to the Key Vault Secret which stores the protected settings.
     */
    @JvmName("nlbnkhdcwayhgrmd")
    public suspend fun secretUrl(`value`: Output) {
        this.secretUrl = value
    }

    /**
     * @param value The ID of the source Key Vault.
     */
    @JvmName("gmxoqacsgxqhjqmc")
    public suspend fun sourceVaultId(`value`: Output) {
        this.sourceVaultId = value
    }

    /**
     * @param value The URL to the Key Vault Secret which stores the protected settings.
     */
    @JvmName("qhxxxxqrtjkhbvhk")
    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 source Key Vault.
     */
    @JvmName("iinckagfqxahhhwu")
    public suspend fun sourceVaultId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceVaultId = mapped
    }

    internal fun build(): OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs = OrchestratedVirtualMachineScaleSetExtensionProtectedSettingsFromKeyVaultArgs(
        secretUrl = secretUrl ?: throw PulumiNullFieldException("secretUrl"),
        sourceVaultId = sourceVaultId ?: throw PulumiNullFieldException("sourceVaultId"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy