![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.batch.kotlin.outputs.PoolStartTask.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.batch.kotlin.outputs
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
/**
*
* @property commandLine The command line executed by the start task.
* @property commonEnvironmentProperties A map of strings (key,value) that represents the environment variables to set in the start task.
* @property containers A `container` block is the settings for the container under which the start task runs as defined below. When this is specified, all directories recursively below the `AZ_BATCH_NODE_ROOT_DIR` (the root of Azure Batch directories on the node) are mapped into the container, all task environment variables are mapped into the container, and the task command line is executed in the container.
* @property resourceFiles One or more `resource_file` blocks that describe the files to be downloaded to a compute node as defined below.
* @property taskRetryMaximum The number of retry count.
* @property userIdentity A `user_identity` block that describes the user identity under which the start task runs as defined below.
* @property waitForSuccess A flag that indicates if the Batch pool should wait for the start task to be completed. Default to `false`.
*/
public data class PoolStartTask(
public val commandLine: String,
public val commonEnvironmentProperties: Map? = null,
public val containers: List? = null,
public val resourceFiles: List? = null,
public val taskRetryMaximum: Int? = null,
public val userIdentity: PoolStartTaskUserIdentity,
public val waitForSuccess: Boolean? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolStartTask): PoolStartTask =
PoolStartTask(
commandLine = javaType.commandLine(),
commonEnvironmentProperties = javaType.commonEnvironmentProperties().map({ args0 ->
args0.key.to(args0.value)
}).toMap(),
containers = javaType.containers().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.PoolStartTaskContainer.Companion.toKotlin(args0)
})
}),
resourceFiles = javaType.resourceFiles().map({ args0 ->
args0.let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.PoolStartTaskResourceFile.Companion.toKotlin(args0)
})
}),
taskRetryMaximum = javaType.taskRetryMaximum().map({ args0 -> args0 }).orElse(null),
userIdentity = javaType.userIdentity().let({ args0 ->
com.pulumi.azure.batch.kotlin.outputs.PoolStartTaskUserIdentity.Companion.toKotlin(args0)
}),
waitForSuccess = javaType.waitForSuccess().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy