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

com.pulumi.azure.mssql.kotlin.inputs.VirtualMachineKeyVaultCredentialArgs.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.14.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.mssql.kotlin.inputs

import com.pulumi.azure.mssql.inputs.VirtualMachineKeyVaultCredentialArgs.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 keyVaultUrl The Azure Key Vault url. Changing this forces a new resource to be created.
 * @property name The credential name.
 * @property servicePrincipalName The service principal name to access key vault. Changing this forces a new resource to be created.
 * @property servicePrincipalSecret The service principal name secret to access key vault. Changing this forces a new resource to be created.
 */
public data class VirtualMachineKeyVaultCredentialArgs(
    public val keyVaultUrl: Output,
    public val name: Output,
    public val servicePrincipalName: Output,
    public val servicePrincipalSecret: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.mssql.inputs.VirtualMachineKeyVaultCredentialArgs =
        com.pulumi.azure.mssql.inputs.VirtualMachineKeyVaultCredentialArgs.builder()
            .keyVaultUrl(keyVaultUrl.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .servicePrincipalName(servicePrincipalName.applyValue({ args0 -> args0 }))
            .servicePrincipalSecret(servicePrincipalSecret.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VirtualMachineKeyVaultCredentialArgs].
 */
@PulumiTagMarker
public class VirtualMachineKeyVaultCredentialArgsBuilder internal constructor() {
    private var keyVaultUrl: Output? = null

    private var name: Output? = null

    private var servicePrincipalName: Output? = null

    private var servicePrincipalSecret: Output? = null

    /**
     * @param value The Azure Key Vault url. Changing this forces a new resource to be created.
     */
    @JvmName("cnpqilahavghkymg")
    public suspend fun keyVaultUrl(`value`: Output) {
        this.keyVaultUrl = value
    }

    /**
     * @param value The credential name.
     */
    @JvmName("xjmonwpolxqfchim")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The service principal name to access key vault. Changing this forces a new resource to be created.
     */
    @JvmName("bsldamtxintqbgmy")
    public suspend fun servicePrincipalName(`value`: Output) {
        this.servicePrincipalName = value
    }

    /**
     * @param value The service principal name secret to access key vault. Changing this forces a new resource to be created.
     */
    @JvmName("rykgiedgqdhynbsr")
    public suspend fun servicePrincipalSecret(`value`: Output) {
        this.servicePrincipalSecret = value
    }

    /**
     * @param value The Azure Key Vault url. Changing this forces a new resource to be created.
     */
    @JvmName("fnowyexqtpdwaexv")
    public suspend fun keyVaultUrl(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.keyVaultUrl = mapped
    }

    /**
     * @param value The credential name.
     */
    @JvmName("psktiryaqpapqxtm")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The service principal name to access key vault. Changing this forces a new resource to be created.
     */
    @JvmName("kjadfxarqaetipwi")
    public suspend fun servicePrincipalName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servicePrincipalName = mapped
    }

    /**
     * @param value The service principal name secret to access key vault. Changing this forces a new resource to be created.
     */
    @JvmName("ojhbdvxhbdhntrix")
    public suspend fun servicePrincipalSecret(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servicePrincipalSecret = mapped
    }

    internal fun build(): VirtualMachineKeyVaultCredentialArgs = VirtualMachineKeyVaultCredentialArgs(
        keyVaultUrl = keyVaultUrl ?: throw PulumiNullFieldException("keyVaultUrl"),
        name = name ?: throw PulumiNullFieldException("name"),
        servicePrincipalName = servicePrincipalName ?: throw
            PulumiNullFieldException("servicePrincipalName"),
        servicePrincipalSecret = servicePrincipalSecret ?: throw
            PulumiNullFieldException("servicePrincipalSecret"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy