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

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

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.Ec2FleetCapacityReservationOptionsRequestArgs.builder
import com.pulumi.awsnative.ec2.kotlin.enums.Ec2FleetCapacityReservationOptionsRequestUsageStrategy
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property usageStrategy Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.
 * If you specify `use-capacity-reservations-first` , the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy ( `lowest-price` or `prioritized` ) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy ( `lowest-price` or `prioritized` ).
 * If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.
 */
public data class Ec2FleetCapacityReservationOptionsRequestArgs(
    public val usageStrategy: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.Ec2FleetCapacityReservationOptionsRequestArgs =
        com.pulumi.awsnative.ec2.inputs.Ec2FleetCapacityReservationOptionsRequestArgs.builder()
            .usageStrategy(usageStrategy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [Ec2FleetCapacityReservationOptionsRequestArgs].
 */
@PulumiTagMarker
public class Ec2FleetCapacityReservationOptionsRequestArgsBuilder internal constructor() {
    private var usageStrategy: Output? = null

    /**
     * @param value Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.
     * If you specify `use-capacity-reservations-first` , the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy ( `lowest-price` or `prioritized` ) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy ( `lowest-price` or `prioritized` ).
     * If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.
     */
    @JvmName("xqibissldrbsusjq")
    public suspend fun usageStrategy(`value`: Output) {
        this.usageStrategy = value
    }

    /**
     * @param value Indicates whether to use unused Capacity Reservations for fulfilling On-Demand capacity.
     * If you specify `use-capacity-reservations-first` , the fleet uses unused Capacity Reservations to fulfill On-Demand capacity up to the target On-Demand capacity. If multiple instance pools have unused Capacity Reservations, the On-Demand allocation strategy ( `lowest-price` or `prioritized` ) is applied. If the number of unused Capacity Reservations is less than the On-Demand target capacity, the remaining On-Demand target capacity is launched according to the On-Demand allocation strategy ( `lowest-price` or `prioritized` ).
     * If you do not specify a value, the fleet fulfils the On-Demand capacity according to the chosen On-Demand allocation strategy.
     */
    @JvmName("kewxcwdfnuvswyjt")
    public suspend fun usageStrategy(`value`: Ec2FleetCapacityReservationOptionsRequestUsageStrategy?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.usageStrategy = mapped
    }

    internal fun build(): Ec2FleetCapacityReservationOptionsRequestArgs =
        Ec2FleetCapacityReservationOptionsRequestArgs(
            usageStrategy = usageStrategy,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy