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

com.pulumi.azure.batch.kotlin.outputs.PoolStartTaskUserIdentity.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.batch.kotlin.outputs

import kotlin.String
import kotlin.Suppress

/**
 *
 * @property autoUser A `auto_user` block that describes the user identity under which the start task runs as defined below.
 * > **Please Note:** `user_name` and `auto_user` blocks cannot be used both at the same time, but you need to define one or the other.
 * @property userName The username to be used by the Batch pool start task.
 */
public data class PoolStartTaskUserIdentity(
    public val autoUser: PoolStartTaskUserIdentityAutoUser? = null,
    public val userName: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolStartTaskUserIdentity): PoolStartTaskUserIdentity = PoolStartTaskUserIdentity(
            autoUser = javaType.autoUser().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.azure.batch.kotlin.outputs.PoolStartTaskUserIdentityAutoUser.Companion.toKotlin(args0)
                })
            }).orElse(null),
            userName = javaType.userName().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy