
com.pulumi.azurenative.datafactory.kotlin.inputs.ServicePrincipalCredentialArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.datafactory.kotlin.inputs
import com.pulumi.azurenative.datafactory.inputs.ServicePrincipalCredentialArgs.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.collections.List
import kotlin.jvm.JvmName
/**
* Service principal credential.
* @property annotations List of tags that can be used for describing the Credential.
* @property description Credential description.
* @property servicePrincipalId The app ID of the service principal used to authenticate
* @property servicePrincipalKey The key of the service principal used to authenticate.
* @property tenant The ID of the tenant to which the service principal belongs
* @property type Type of credential.
* Expected value is 'ServicePrincipal'.
*/
public data class ServicePrincipalCredentialArgs(
public val annotations: Output>? = null,
public val description: Output? = null,
public val servicePrincipalId: Output? = null,
public val servicePrincipalKey: Output? = null,
public val tenant: Output? = null,
public val type: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.datafactory.inputs.ServicePrincipalCredentialArgs =
com.pulumi.azurenative.datafactory.inputs.ServicePrincipalCredentialArgs.builder()
.annotations(annotations?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.description(description?.applyValue({ args0 -> args0 }))
.servicePrincipalId(servicePrincipalId?.applyValue({ args0 -> args0 }))
.servicePrincipalKey(
servicePrincipalKey?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.tenant(tenant?.applyValue({ args0 -> args0 }))
.type(type.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServicePrincipalCredentialArgs].
*/
@PulumiTagMarker
public class ServicePrincipalCredentialArgsBuilder internal constructor() {
private var annotations: Output>? = null
private var description: Output? = null
private var servicePrincipalId: Output? = null
private var servicePrincipalKey: Output? = null
private var tenant: Output? = null
private var type: Output? = null
/**
* @param value List of tags that can be used for describing the Credential.
*/
@JvmName("yukmgajhnqolnucg")
public suspend fun annotations(`value`: Output>) {
this.annotations = value
}
@JvmName("nahheowytyqpgbkk")
public suspend fun annotations(vararg values: Output) {
this.annotations = Output.all(values.asList())
}
/**
* @param values List of tags that can be used for describing the Credential.
*/
@JvmName("rivgessotbawcdte")
public suspend fun annotations(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy