com.pulumi.aws.ec2.kotlin.inputs.SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.ec2.kotlin.inputs
import com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property replacementStrategy The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
*/
public data class SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs(
public val replacementStrategy: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs =
com.pulumi.aws.ec2.inputs.SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs.builder()
.replacementStrategy(replacementStrategy?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs].
*/
@PulumiTagMarker
public class SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgsBuilder internal constructor() {
private var replacementStrategy: Output? = null
/**
* @param value The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
*/
@JvmName("pbkelvtkwojqxygx")
public suspend fun replacementStrategy(`value`: Output) {
this.replacementStrategy = value
}
/**
* @param value The replacement strategy to use. Only available for spot fleets with `fleet_type` set to `maintain`. Valid values: `launch`.
*/
@JvmName("jcxnjjhxcdstofvy")
public suspend fun replacementStrategy(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replacementStrategy = mapped
}
internal fun build(): SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs =
SpotFleetRequestSpotMaintenanceStrategiesCapacityRebalanceArgs(
replacementStrategy = replacementStrategy,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy