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

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

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

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

import com.pulumi.azurenative.servicelinker.inputs.UserAssignedIdentityAuthInfoArgs.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 userAssignedIdentity
 * @property authType The authentication type.
 * Expected value is 'userAssignedIdentity'.
 * @property clientId Client Id for userAssignedIdentity.
 * @property deleteOrUpdateBehavior Indicates whether to clean up previous operation when Linker is updating or deleting
 * @property roles Optional, this value specifies the Azure role to be assigned
 * @property subscriptionId Subscription id for userAssignedIdentity.
 * @property userName Username created in the database which is mapped to a user in AAD.
 */
public data class UserAssignedIdentityAuthInfoArgs(
    public val authType: Output,
    public val clientId: Output? = null,
    public val deleteOrUpdateBehavior: Output>? = null,
    public val roles: Output>? = null,
    public val subscriptionId: Output? = null,
    public val userName: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azurenative.servicelinker.inputs.UserAssignedIdentityAuthInfoArgs =
        com.pulumi.azurenative.servicelinker.inputs.UserAssignedIdentityAuthInfoArgs.builder()
            .authType(authType.applyValue({ args0 -> args0 }))
            .clientId(clientId?.applyValue({ args0 -> args0 }))
            .deleteOrUpdateBehavior(
                deleteOrUpdateBehavior?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .roles(roles?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subscriptionId(subscriptionId?.applyValue({ args0 -> args0 }))
            .userName(userName?.applyValue({ args0 -> args0 })).build()
}

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

    private var clientId: Output? = null

    private var deleteOrUpdateBehavior: Output>? = null

    private var roles: Output>? = null

    private var subscriptionId: Output? = null

    private var userName: Output? = null

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

    /**
     * @param value Client Id for userAssignedIdentity.
     */
    @JvmName("fwtnbxgultqummlx")
    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("oioapofxicmxycls")
    public suspend fun deleteOrUpdateBehavior(`value`: Output>) {
        this.deleteOrUpdateBehavior = value
    }

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

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

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

    /**
     * @param value Subscription id for userAssignedIdentity.
     */
    @JvmName("wlffcnwoldooqrae")
    public suspend fun subscriptionId(`value`: Output) {
        this.subscriptionId = value
    }

    /**
     * @param value Username created in the database which is mapped to a user in AAD.
     */
    @JvmName("ecsvtdyrldmplcju")
    public suspend fun userName(`value`: Output) {
        this.userName = value
    }

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

    /**
     * @param value Client Id for userAssignedIdentity.
     */
    @JvmName("sulwbwmwpsdsrojp")
    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("gpmiacsycwannymd")
    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("jiejpvjqxcgayary")
    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("cmqyelstmathvpjq")
    public fun deleteOrUpdateBehavior(`value`: DeleteOrUpdateBehavior) {
        val toBeMapped = Either.ofRight(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.deleteOrUpdateBehavior = mapped
    }

    /**
     * @param value Optional, this value specifies the Azure role to be assigned
     */
    @JvmName("cecohptfxbjpfahr")
    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 role to be assigned
     */
    @JvmName("stlvochsbsdwgalv")
    public suspend fun roles(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roles = mapped
    }

    /**
     * @param value Subscription id for userAssignedIdentity.
     */
    @JvmName("pagseaflehrijvld")
    public suspend fun subscriptionId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subscriptionId = mapped
    }

    /**
     * @param value Username created in the database which is mapped to a user in AAD.
     */
    @JvmName("ktlduojegrorvdkd")
    public suspend fun userName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userName = mapped
    }

    internal fun build(): UserAssignedIdentityAuthInfoArgs = UserAssignedIdentityAuthInfoArgs(
        authType = authType ?: throw PulumiNullFieldException("authType"),
        clientId = clientId,
        deleteOrUpdateBehavior = deleteOrUpdateBehavior,
        roles = roles,
        subscriptionId = subscriptionId,
        userName = userName,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy