com.pulumi.azurenative.chaos.kotlin.inputs.ResourceIdentityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.chaos.kotlin.inputs
import com.pulumi.azurenative.chaos.inputs.ResourceIdentityArgs.builder
import com.pulumi.azurenative.chaos.kotlin.enums.ResourceIdentityType
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 identity of a resource.
* @property type String of the resource identity type.
* @property userAssignedIdentities The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
public data class ResourceIdentityArgs(
public val type: Output,
public val userAssignedIdentities: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.chaos.inputs.ResourceIdentityArgs =
com.pulumi.azurenative.chaos.inputs.ResourceIdentityArgs.builder()
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.userAssignedIdentities(
userAssignedIdentities?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [ResourceIdentityArgs].
*/
@PulumiTagMarker
public class ResourceIdentityArgsBuilder internal constructor() {
private var type: Output? = null
private var userAssignedIdentities: Output>? = null
/**
* @param value String of the resource identity type.
*/
@JvmName("rqrdnpikbdvrdwss")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
@JvmName("nudnwdiegojurxjr")
public suspend fun userAssignedIdentities(`value`: Output>) {
this.userAssignedIdentities = value
}
@JvmName("cxaqmftjltpkosvc")
public suspend fun userAssignedIdentities(vararg values: Output) {
this.userAssignedIdentities = Output.all(values.asList())
}
/**
* @param values The list of user identities associated with the Experiment. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}'.
*/
@JvmName("xqidimbfewpkifhx")
public suspend fun userAssignedIdentities(values: List