com.pulumi.azurenative.kubernetesconfiguration.kotlin.inputs.ServicePrincipalDefinitionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.kubernetesconfiguration.kotlin.inputs
import com.pulumi.azurenative.kubernetesconfiguration.inputs.ServicePrincipalDefinitionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Parameters to authenticate using Service Principal.
* @property clientCertificate Base64-encoded certificate used to authenticate a Service Principal
* @property clientCertificatePassword The password for the certificate used to authenticate a Service Principal
* @property clientCertificateSendChain Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the Client Certificate
* @property clientId The client Id for authenticating a Service Principal.
* @property clientSecret The client secret for authenticating a Service Principal
* @property tenantId The tenant Id for authenticating a Service Principal
*/
public data class ServicePrincipalDefinitionArgs(
public val clientCertificate: Output? = null,
public val clientCertificatePassword: Output? = null,
public val clientCertificateSendChain: Output? = null,
public val clientId: Output? = null,
public val clientSecret: Output? = null,
public val tenantId: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.kubernetesconfiguration.inputs.ServicePrincipalDefinitionArgs =
com.pulumi.azurenative.kubernetesconfiguration.inputs.ServicePrincipalDefinitionArgs.builder()
.clientCertificate(clientCertificate?.applyValue({ args0 -> args0 }))
.clientCertificatePassword(clientCertificatePassword?.applyValue({ args0 -> args0 }))
.clientCertificateSendChain(clientCertificateSendChain?.applyValue({ args0 -> args0 }))
.clientId(clientId?.applyValue({ args0 -> args0 }))
.clientSecret(clientSecret?.applyValue({ args0 -> args0 }))
.tenantId(tenantId?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServicePrincipalDefinitionArgs].
*/
@PulumiTagMarker
public class ServicePrincipalDefinitionArgsBuilder internal constructor() {
private var clientCertificate: Output? = null
private var clientCertificatePassword: Output? = null
private var clientCertificateSendChain: Output? = null
private var clientId: Output? = null
private var clientSecret: Output? = null
private var tenantId: Output? = null
/**
* @param value Base64-encoded certificate used to authenticate a Service Principal
*/
@JvmName("buvkphaoxrtpskmk")
public suspend fun clientCertificate(`value`: Output) {
this.clientCertificate = value
}
/**
* @param value The password for the certificate used to authenticate a Service Principal
*/
@JvmName("evsjicutycrdsfmx")
public suspend fun clientCertificatePassword(`value`: Output) {
this.clientCertificatePassword = value
}
/**
* @param value Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the Client Certificate
*/
@JvmName("ogqohpferrbxrytq")
public suspend fun clientCertificateSendChain(`value`: Output) {
this.clientCertificateSendChain = value
}
/**
* @param value The client Id for authenticating a Service Principal.
*/
@JvmName("phshhacytdynkhpv")
public suspend fun clientId(`value`: Output) {
this.clientId = value
}
/**
* @param value The client secret for authenticating a Service Principal
*/
@JvmName("metpoprodmjhinjd")
public suspend fun clientSecret(`value`: Output) {
this.clientSecret = value
}
/**
* @param value The tenant Id for authenticating a Service Principal
*/
@JvmName("wswnkvgmhpcextgm")
public suspend fun tenantId(`value`: Output) {
this.tenantId = value
}
/**
* @param value Base64-encoded certificate used to authenticate a Service Principal
*/
@JvmName("uaeuypodxiqqwyno")
public suspend fun clientCertificate(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificate = mapped
}
/**
* @param value The password for the certificate used to authenticate a Service Principal
*/
@JvmName("uwodtjvrduqhqrwn")
public suspend fun clientCertificatePassword(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificatePassword = mapped
}
/**
* @param value Specifies whether to include x5c header in client claims when acquiring a token to enable subject name / issuer based authentication for the Client Certificate
*/
@JvmName("lvigiyrcxiwoycww")
public suspend fun clientCertificateSendChain(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientCertificateSendChain = mapped
}
/**
* @param value The client Id for authenticating a Service Principal.
*/
@JvmName("vnlxvlyeqltdmfhn")
public suspend fun clientId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientId = mapped
}
/**
* @param value The client secret for authenticating a Service Principal
*/
@JvmName("ucibdgejytpenlsv")
public suspend fun clientSecret(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.clientSecret = mapped
}
/**
* @param value The tenant Id for authenticating a Service Principal
*/
@JvmName("tdcyyctesapxybro")
public suspend fun tenantId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tenantId = mapped
}
internal fun build(): ServicePrincipalDefinitionArgs = ServicePrincipalDefinitionArgs(
clientCertificate = clientCertificate,
clientCertificatePassword = clientCertificatePassword,
clientCertificateSendChain = clientCertificateSendChain,
clientId = clientId,
clientSecret = clientSecret,
tenantId = tenantId,
)
}