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

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

package com.pulumi.azure.datafactory.kotlin.inputs

import com.pulumi.azure.datafactory.inputs.CredentialServicePrincipalServicePrincipalKeyArgs.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 linkedServiceName The name of the Linked Service to use for the Service Principal Key.
 * @property secretName The name of the Secret in the Key Vault.
 * @property secretVersion The version of the Secret in the Key Vault.
 */
public data class CredentialServicePrincipalServicePrincipalKeyArgs(
    public val linkedServiceName: Output,
    public val secretName: Output,
    public val secretVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.datafactory.inputs.CredentialServicePrincipalServicePrincipalKeyArgs =
        com.pulumi.azure.datafactory.inputs.CredentialServicePrincipalServicePrincipalKeyArgs.builder()
            .linkedServiceName(linkedServiceName.applyValue({ args0 -> args0 }))
            .secretName(secretName.applyValue({ args0 -> args0 }))
            .secretVersion(secretVersion?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CredentialServicePrincipalServicePrincipalKeyArgs].
 */
@PulumiTagMarker
public class CredentialServicePrincipalServicePrincipalKeyArgsBuilder internal constructor() {
    private var linkedServiceName: Output? = null

    private var secretName: Output? = null

    private var secretVersion: Output? = null

    /**
     * @param value The name of the Linked Service to use for the Service Principal Key.
     */
    @JvmName("eseqjbjhsdnaysuq")
    public suspend fun linkedServiceName(`value`: Output) {
        this.linkedServiceName = value
    }

    /**
     * @param value The name of the Secret in the Key Vault.
     */
    @JvmName("eqmqefwktilmoqlo")
    public suspend fun secretName(`value`: Output) {
        this.secretName = value
    }

    /**
     * @param value The version of the Secret in the Key Vault.
     */
    @JvmName("kufgkmimojoyduni")
    public suspend fun secretVersion(`value`: Output) {
        this.secretVersion = value
    }

    /**
     * @param value The name of the Linked Service to use for the Service Principal Key.
     */
    @JvmName("rnwgjcsqfechpdvh")
    public suspend fun linkedServiceName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.linkedServiceName = mapped
    }

    /**
     * @param value The name of the Secret in the Key Vault.
     */
    @JvmName("afyqjocbwgctgrfi")
    public suspend fun secretName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.secretName = mapped
    }

    /**
     * @param value The version of the Secret in the Key Vault.
     */
    @JvmName("rooknikessemcigb")
    public suspend fun secretVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.secretVersion = mapped
    }

    internal fun build(): CredentialServicePrincipalServicePrincipalKeyArgs =
        CredentialServicePrincipalServicePrincipalKeyArgs(
            linkedServiceName = linkedServiceName ?: throw PulumiNullFieldException("linkedServiceName"),
            secretName = secretName ?: throw PulumiNullFieldException("secretName"),
            secretVersion = secretVersion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy