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

com.pulumi.azurenative.azurefleet.kotlin.enums.SpotAllocationStrategy.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: 2.82.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.azurefleet.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * Allocation strategy to follow when determining the VM sizes distribution for Spot VMs.
 */
public enum class SpotAllocationStrategy(
    public val javaValue: com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy,
) : ConvertibleToJava {
    /**
     * Default. VM sizes distribution will be determined to optimize for both price and capacity.
     */
    PriceCapacityOptimized(com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy.PriceCapacityOptimized),

    /**
     * VM sizes distribution will be determined to optimize for price. Note: Capacity will still be considered here but will be given much less weight.
     */
    LowestPrice(com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy.LowestPrice),

    /**
     * VM sizes distribution will be determined to optimize for capacity.
     */
    CapacityOptimized(com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy.CapacityOptimized),
    ;

    override fun toJava(): com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.azurefleet.enums.SpotAllocationStrategy): SpotAllocationStrategy = SpotAllocationStrategy.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy