com.pulumi.aws.emr.kotlin.inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs.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.emr.kotlin.inputs
import com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property allocationStrategy Specifies one of the following strategies to launch Spot Instance fleets: `price-capacity-optimized`, `capacity-optimized`, `lowest-price`, or `diversified`. For more information on the provisioning strategies, see [Allocation strategies for Spot Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html).
*/
public data class InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs(
public val allocationStrategy: Output,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs =
com.pulumi.aws.emr.inputs.InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs.builder()
.allocationStrategy(allocationStrategy.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs].
*/
@PulumiTagMarker
public class InstanceFleetLaunchSpecificationsOnDemandSpecificationArgsBuilder internal constructor() {
private var allocationStrategy: Output? = null
/**
* @param value Specifies one of the following strategies to launch Spot Instance fleets: `price-capacity-optimized`, `capacity-optimized`, `lowest-price`, or `diversified`. For more information on the provisioning strategies, see [Allocation strategies for Spot Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html).
*/
@JvmName("utcmvweenaesvcdm")
public suspend fun allocationStrategy(`value`: Output) {
this.allocationStrategy = value
}
/**
* @param value Specifies one of the following strategies to launch Spot Instance fleets: `price-capacity-optimized`, `capacity-optimized`, `lowest-price`, or `diversified`. For more information on the provisioning strategies, see [Allocation strategies for Spot Instances](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html).
*/
@JvmName("ssxcatmeudllrild")
public suspend fun allocationStrategy(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.allocationStrategy = mapped
}
internal fun build(): InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs =
InstanceFleetLaunchSpecificationsOnDemandSpecificationArgs(
allocationStrategy = allocationStrategy ?: throw PulumiNullFieldException("allocationStrategy"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy