com.pulumi.azurenative.batch.kotlin.inputs.BatchPoolIdentityArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.batch.kotlin.inputs
import com.pulumi.azurenative.batch.inputs.BatchPoolIdentityArgs.builder
import com.pulumi.azurenative.batch.kotlin.enums.PoolIdentityType
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 the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities
* @property type The type of identity used for the Batch Pool.
* @property userAssignedIdentities The list of user identities associated with the Batch pool.
*/
public data class BatchPoolIdentityArgs(
public val type: Output,
public val userAssignedIdentities: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.batch.inputs.BatchPoolIdentityArgs =
com.pulumi.azurenative.batch.inputs.BatchPoolIdentityArgs.builder()
.type(type.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.userAssignedIdentities(
userAssignedIdentities?.applyValue({ args0 ->
args0.map({ args0 ->
args0
})
}),
).build()
}
/**
* Builder for [BatchPoolIdentityArgs].
*/
@PulumiTagMarker
public class BatchPoolIdentityArgsBuilder internal constructor() {
private var type: Output? = null
private var userAssignedIdentities: Output>? = null
/**
* @param value The type of identity used for the Batch Pool.
*/
@JvmName("adhrxwknlrmexiap")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value The list of user identities associated with the Batch pool.
*/
@JvmName("nexifvlsxaiwkwnj")
public suspend fun userAssignedIdentities(`value`: Output>) {
this.userAssignedIdentities = value
}
@JvmName("yfvyovycgnqqeksr")
public suspend fun userAssignedIdentities(vararg values: Output) {
this.userAssignedIdentities = Output.all(values.asList())
}
/**
* @param values The list of user identities associated with the Batch pool.
*/
@JvmName("vqqcahqxmjiycpro")
public suspend fun userAssignedIdentities(values: List