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

com.pulumi.azurenative.servicelinker.kotlin.inputs.ServicePrincipalCertificateAuthInfoArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.azurenative.servicelinker.kotlin.inputs

import com.pulumi.azurenative.servicelinker.inputs.ServicePrincipalCertificateAuthInfoArgs.builder
import com.pulumi.azurenative.servicelinker.kotlin.enums.DeleteOrUpdateBehavior
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The authentication info when authType is servicePrincipal certificate
 * @property authType The authentication type.
 * Expected value is 'servicePrincipalCertificate'.
 * @property certificate ServicePrincipal certificate for servicePrincipal auth.
 * @property clientId Application clientId for servicePrincipal auth.
 * @property deleteOrUpdateBehavior Indicates whether to clean up previous operation when Linker is updating or deleting
 * @property principalId Principal Id for servicePrincipal auth.
 * @property roles Optional, this value specifies the Azure roles to be assigned. Automatically
 */
public data class ServicePrincipalCertificateAuthInfoArgs(
    public val authType: Output,
    public val certificate: Output,
    public val clientId: Output,
    public val deleteOrUpdateBehavior: Output>? = null,
    public val principalId: Output,
    public val roles: Output>? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicelinker.inputs.ServicePrincipalCertificateAuthInfoArgs =
        com.pulumi.azurenative.servicelinker.inputs.ServicePrincipalCertificateAuthInfoArgs.builder()
            .authType(authType.applyValue({ args0 -> args0 }))
            .certificate(certificate.applyValue({ args0 -> args0 }))
            .clientId(clientId.applyValue({ args0 -> args0 }))
            .deleteOrUpdateBehavior(
                deleteOrUpdateBehavior?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .principalId(principalId.applyValue({ args0 -> args0 }))
            .roles(roles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [ServicePrincipalCertificateAuthInfoArgs].
 */
@PulumiTagMarker
public class ServicePrincipalCertificateAuthInfoArgsBuilder internal constructor() {
    private var authType: Output? = null

    private var certificate: Output? = null

    private var clientId: Output? = null

    private var deleteOrUpdateBehavior: Output>? = null

    private var principalId: Output? = null

    private var roles: Output>? = null

    /**
     * @param value The authentication type.
     * Expected value is 'servicePrincipalCertificate'.
     */
    @JvmName("raoxgitjsmqrjejt")
    public suspend fun authType(`value`: Output) {
        this.authType = value
    }

    /**
     * @param value ServicePrincipal certificate for servicePrincipal auth.
     */
    @JvmName("gpwdxnvddspsrvrx")
    public suspend fun certificate(`value`: Output) {
        this.certificate = value
    }

    /**
     * @param value Application clientId for servicePrincipal auth.
     */
    @JvmName("rdgnndvxttqsxgfb")
    public suspend fun clientId(`value`: Output) {
        this.clientId = value
    }

    /**
     * @param value Indicates whether to clean up previous operation when Linker is updating or deleting
     */
    @JvmName("hlhcmtddesvgctym")
    public suspend fun deleteOrUpdateBehavior(`value`: Output>) {
        this.deleteOrUpdateBehavior = value
    }

    /**
     * @param value Principal Id for servicePrincipal auth.
     */
    @JvmName("jaddmobmqfixxvdo")
    public suspend fun principalId(`value`: Output) {
        this.principalId = value
    }

    /**
     * @param value Optional, this value specifies the Azure roles to be assigned. Automatically
     */
    @JvmName("yqpmisysktmwpvib")
    public suspend fun roles(`value`: Output>) {
        this.roles = value
    }

    @JvmName("yaomnhelegglkofv")
    public suspend fun roles(vararg values: Output) {
        this.roles = Output.all(values.asList())
    }

    /**
     * @param values Optional, this value specifies the Azure roles to be assigned. Automatically
     */
    @JvmName("oqnadydagwdsfogv")
    public suspend fun roles(values: List>) {
        this.roles = Output.all(values)
    }

    /**
     * @param value The authentication type.
     * Expected value is 'servicePrincipalCertificate'.
     */
    @JvmName("ouorujbeyqfjswmp")
    public suspend fun authType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.authType = mapped
    }

    /**
     * @param value ServicePrincipal certificate for servicePrincipal auth.
     */
    @JvmName("btfcyhvqjieorwlj")
    public suspend fun certificate(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.certificate = mapped
    }

    /**
     * @param value Application clientId for servicePrincipal auth.
     */
    @JvmName("niucmkcwsybiqerd")
    public suspend fun clientId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.clientId = mapped
    }

    /**
     * @param value Indicates whether to clean up previous operation when Linker is updating or deleting
     */
    @JvmName("qxdmotmsqjvjdgqk")
    public suspend fun deleteOrUpdateBehavior(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.deleteOrUpdateBehavior = mapped
    }

    /**
     * @param value Indicates whether to clean up previous operation when Linker is updating or deleting
     */
    @JvmName("hrdndrntnopyygxl")
    public fun deleteOrUpdateBehavior(`value`: String) {
        val toBeMapped = Either.ofLeft(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOrUpdateBehavior = mapped
    }

    /**
     * @param value Indicates whether to clean up previous operation when Linker is updating or deleting
     */
    @JvmName("olqoptgkbsmsicbu")
    public fun deleteOrUpdateBehavior(`value`: DeleteOrUpdateBehavior) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOrUpdateBehavior = mapped
    }

    /**
     * @param value Principal Id for servicePrincipal auth.
     */
    @JvmName("wgddioqefkwxogte")
    public suspend fun principalId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.principalId = mapped
    }

    /**
     * @param value Optional, this value specifies the Azure roles to be assigned. Automatically
     */
    @JvmName("vcnfjqmyosmavaox")
    public suspend fun roles(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param values Optional, this value specifies the Azure roles to be assigned. Automatically
     */
    @JvmName("hvqlynmkeyqgomda")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    internal fun build(): ServicePrincipalCertificateAuthInfoArgs =
        ServicePrincipalCertificateAuthInfoArgs(
            authType = authType ?: throw PulumiNullFieldException("authType"),
            certificate = certificate ?: throw PulumiNullFieldException("certificate"),
            clientId = clientId ?: throw PulumiNullFieldException("clientId"),
            deleteOrUpdateBehavior = deleteOrUpdateBehavior,
            principalId = principalId ?: throw PulumiNullFieldException("principalId"),
            roles = roles,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy