![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.media.kotlin.inputs.ResourceIdentityArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.media.kotlin.inputs
import com.pulumi.azurenative.media.inputs.ResourceIdentityArgs.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 kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property useSystemAssignedIdentity Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
* @property userAssignedIdentity The user assigned managed identity's ARM ID to use when accessing a resource.
*/
public data class ResourceIdentityArgs(
public val useSystemAssignedIdentity: Output,
public val userAssignedIdentity: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.media.inputs.ResourceIdentityArgs =
com.pulumi.azurenative.media.inputs.ResourceIdentityArgs.builder()
.useSystemAssignedIdentity(useSystemAssignedIdentity.applyValue({ args0 -> args0 }))
.userAssignedIdentity(userAssignedIdentity?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ResourceIdentityArgs].
*/
@PulumiTagMarker
public class ResourceIdentityArgsBuilder internal constructor() {
private var useSystemAssignedIdentity: Output? = null
private var userAssignedIdentity: Output? = null
/**
* @param value Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
*/
@JvmName("igsvaexfkvyuotal")
public suspend fun useSystemAssignedIdentity(`value`: Output) {
this.useSystemAssignedIdentity = value
}
/**
* @param value The user assigned managed identity's ARM ID to use when accessing a resource.
*/
@JvmName("hikngmeqbryfixef")
public suspend fun userAssignedIdentity(`value`: Output) {
this.userAssignedIdentity = value
}
/**
* @param value Indicates whether to use System Assigned Managed Identity. Mutual exclusive with User Assigned Managed Identity.
*/
@JvmName("uumvxspqqxcqgvdl")
public suspend fun useSystemAssignedIdentity(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.useSystemAssignedIdentity = mapped
}
/**
* @param value The user assigned managed identity's ARM ID to use when accessing a resource.
*/
@JvmName("bjokyrmjvrflvmty")
public suspend fun userAssignedIdentity(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.userAssignedIdentity = mapped
}
internal fun build(): ResourceIdentityArgs = ResourceIdentityArgs(
useSystemAssignedIdentity = useSystemAssignedIdentity ?: throw
PulumiNullFieldException("useSystemAssignedIdentity"),
userAssignedIdentity = userAssignedIdentity,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy