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

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

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

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

import com.pulumi.azurenative.datafactory.inputs.SqlAlwaysEncryptedPropertiesArgs.builder
import com.pulumi.azurenative.datafactory.kotlin.enums.SqlAlwaysEncryptedAkvAuthType
import com.pulumi.core.Either
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

/**
 * Sql always encrypted properties.
 * @property alwaysEncryptedAkvAuthType Sql always encrypted AKV authentication type. Type: string.
 * @property credential The credential reference containing authentication information.
 * @property servicePrincipalId The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
 * @property servicePrincipalKey The key of the service principal used to authenticate against Azure Key Vault.
 */
public data class SqlAlwaysEncryptedPropertiesArgs(
    public val alwaysEncryptedAkvAuthType: Output>,
    public val credential: Output? = null,
    public val servicePrincipalId: Output? = null,
    public val servicePrincipalKey: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.datafactory.inputs.SqlAlwaysEncryptedPropertiesArgs = com.pulumi.azurenative.datafactory.inputs.SqlAlwaysEncryptedPropertiesArgs.builder()
        .alwaysEncryptedAkvAuthType(
            alwaysEncryptedAkvAuthType.applyValue({ args0 ->
                args0.transform({ args0 -> args0 }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
            }),
        )
        .credential(credential?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .servicePrincipalId(servicePrincipalId?.applyValue({ args0 -> args0 }))
        .servicePrincipalKey(
            servicePrincipalKey?.applyValue({ args0 ->
                args0.transform({ args0 ->
                    args0.let({ args0 -> args0.toJava() })
                }, { args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        ).build()
}

/**
 * Builder for [SqlAlwaysEncryptedPropertiesArgs].
 */
@PulumiTagMarker
public class SqlAlwaysEncryptedPropertiesArgsBuilder internal constructor() {
    private var alwaysEncryptedAkvAuthType: Output>? =
        null

    private var credential: Output? = null

    private var servicePrincipalId: Output? = null

    private var servicePrincipalKey:
        Output>? = null

    /**
     * @param value Sql always encrypted AKV authentication type. Type: string.
     */
    @JvmName("xbiiqbtckissegrj")
    public suspend fun alwaysEncryptedAkvAuthType(`value`: Output>) {
        this.alwaysEncryptedAkvAuthType = value
    }

    /**
     * @param value The credential reference containing authentication information.
     */
    @JvmName("ltwcuvovjbcyxwaa")
    public suspend fun credential(`value`: Output) {
        this.credential = value
    }

    /**
     * @param value The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
     */
    @JvmName("hkanadbpcbgmhbwx")
    public suspend fun servicePrincipalId(`value`: Output) {
        this.servicePrincipalId = value
    }

    /**
     * @param value The key of the service principal used to authenticate against Azure Key Vault.
     */
    @JvmName("ytxfdirqofadfqew")
    public suspend fun servicePrincipalKey(`value`: Output>) {
        this.servicePrincipalKey = value
    }

    /**
     * @param value Sql always encrypted AKV authentication type. Type: string.
     */
    @JvmName("emclloaltimadbva")
    public suspend fun alwaysEncryptedAkvAuthType(`value`: Either) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alwaysEncryptedAkvAuthType = mapped
    }

    /**
     * @param value Sql always encrypted AKV authentication type. Type: string.
     */
    @JvmName("fxbbpqtbvdstvmgk")
    public fun alwaysEncryptedAkvAuthType(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alwaysEncryptedAkvAuthType = mapped
    }

    /**
     * @param value Sql always encrypted AKV authentication type. Type: string.
     */
    @JvmName("lxtiewnjvenjbvcw")
    public fun alwaysEncryptedAkvAuthType(`value`: SqlAlwaysEncryptedAkvAuthType) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.alwaysEncryptedAkvAuthType = mapped
    }

    /**
     * @param value The credential reference containing authentication information.
     */
    @JvmName("opapftsfrhyonxkj")
    public suspend fun credential(`value`: CredentialReferenceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.credential = mapped
    }

    /**
     * @param argument The credential reference containing authentication information.
     */
    @JvmName("rhrlfpeokeuhxkms")
    public suspend fun credential(argument: suspend CredentialReferenceArgsBuilder.() -> Unit) {
        val toBeMapped = CredentialReferenceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.credential = mapped
    }

    /**
     * @param value The client ID of the application in Azure Active Directory used for Azure Key Vault authentication. Type: string (or Expression with resultType string).
     */
    @JvmName("kkilccpmraubyqqv")
    public suspend fun servicePrincipalId(`value`: Any?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePrincipalId = mapped
    }

    /**
     * @param value The key of the service principal used to authenticate against Azure Key Vault.
     */
    @JvmName("fvltbraetqyyhhjl")
    public suspend fun servicePrincipalKey(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.servicePrincipalKey = mapped
    }

    /**
     * @param value The key of the service principal used to authenticate against Azure Key Vault.
     */
    @JvmName("visfgnxoxkerbnyx")
    public fun servicePrincipalKey(`value`: AzureKeyVaultSecretReferenceArgs) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servicePrincipalKey = mapped
    }

    /**
     * @param value The key of the service principal used to authenticate against Azure Key Vault.
     */
    @JvmName("gwyboksbihuiplmi")
    public fun servicePrincipalKey(`value`: SecureStringArgs) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.servicePrincipalKey = mapped
    }

    internal fun build(): SqlAlwaysEncryptedPropertiesArgs = SqlAlwaysEncryptedPropertiesArgs(
        alwaysEncryptedAkvAuthType = alwaysEncryptedAkvAuthType ?: throw
            PulumiNullFieldException("alwaysEncryptedAkvAuthType"),
        credential = credential,
        servicePrincipalId = servicePrincipalId,
        servicePrincipalKey = servicePrincipalKey,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy