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

com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.enums

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

/**
 * Indicates how to allocate the target Spot Instance capacity across the Spot Instance pools specified by the EC2 Fleet.
 * If the allocation strategy is `lowestPrice` , EC2 Fleet launches instances from the Spot Instance pools with the lowest price. This is the default allocation strategy.
 * If the allocation strategy is `diversified` , EC2 Fleet launches instances from all the Spot Instance pools that you specify.
 * If the allocation strategy is `capacityOptimized` , EC2 Fleet launches instances from Spot Instance pools that are optimally chosen based on the available Spot Instance capacity.
 * *Allowed Values* : `lowestPrice` | `diversified` | `capacityOptimized` | `capacityOptimizedPrioritized`
 */
public enum class Ec2FleetSpotOptionsRequestAllocationStrategy(
    public val javaValue: com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy,
) : ConvertibleToJava {
    LowestPrice(com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.LowestPrice),
    Diversified(com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.Diversified),
    CapacityOptimized(com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.CapacityOptimized),
    CapacityOptimizedPrioritized(com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.CapacityOptimizedPrioritized),
    PriceCapacityOptimized(com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy.PriceCapacityOptimized),
    ;

    override fun toJava(): com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.ec2.enums.Ec2FleetSpotOptionsRequestAllocationStrategy): Ec2FleetSpotOptionsRequestAllocationStrategy =
            Ec2FleetSpotOptionsRequestAllocationStrategy.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy