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

com.pulumi.azure.batch.kotlin.outputs.PoolFixedScale.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.Int
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property nodeDeallocationMethod It determines what to do with a node and its running task(s) if the pool size is decreasing. Values are `Requeue`, `RetainedData`, `TaskCompletion` and `Terminate`.
 * @property resizeTimeout The timeout for resize operations. Defaults to `PT15M`.
 * @property targetDedicatedNodes The number of nodes in the Batch pool. Defaults to `1`.
 * @property targetLowPriorityNodes The number of low priority nodes in the Batch pool. Defaults to `0`.
 */
public data class PoolFixedScale(
    public val nodeDeallocationMethod: String? = null,
    public val resizeTimeout: String? = null,
    public val targetDedicatedNodes: Int? = null,
    public val targetLowPriorityNodes: Int? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.azure.batch.outputs.PoolFixedScale): PoolFixedScale =
            PoolFixedScale(
                nodeDeallocationMethod = javaType.nodeDeallocationMethod().map({ args0 -> args0 }).orElse(null),
                resizeTimeout = javaType.resizeTimeout().map({ args0 -> args0 }).orElse(null),
                targetDedicatedNodes = javaType.targetDedicatedNodes().map({ args0 -> args0 }).orElse(null),
                targetLowPriorityNodes = javaType.targetLowPriorityNodes().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy