
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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy