com.pulumi.awsnative.ec2.kotlin.SpotFleetArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
import com.pulumi.awsnative.ec2.SpotFleetArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.SpotFleetRequestConfigDataArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.SpotFleetRequestConfigDataArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::EC2::SpotFleet
* @property spotFleetRequestConfigData Describes the configuration of a Spot Fleet request.
*/
public data class SpotFleetArgs(
public val spotFleetRequestConfigData: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ec2.SpotFleetArgs =
com.pulumi.awsnative.ec2.SpotFleetArgs.builder()
.spotFleetRequestConfigData(
spotFleetRequestConfigData?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [SpotFleetArgs].
*/
@PulumiTagMarker
public class SpotFleetArgsBuilder internal constructor() {
private var spotFleetRequestConfigData: Output? = null
/**
* @param value Describes the configuration of a Spot Fleet request.
*/
@JvmName("eodhooopofoskuie")
public suspend fun spotFleetRequestConfigData(`value`: Output) {
this.spotFleetRequestConfigData = value
}
/**
* @param value Describes the configuration of a Spot Fleet request.
*/
@JvmName("ewveitluvuktqhrv")
public suspend fun spotFleetRequestConfigData(`value`: SpotFleetRequestConfigDataArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.spotFleetRequestConfigData = mapped
}
/**
* @param argument Describes the configuration of a Spot Fleet request.
*/
@JvmName("jpuibhojwpwnkagi")
public suspend fun spotFleetRequestConfigData(argument: suspend SpotFleetRequestConfigDataArgsBuilder.() -> Unit) {
val toBeMapped = SpotFleetRequestConfigDataArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.spotFleetRequestConfigData = mapped
}
internal fun build(): SpotFleetArgs = SpotFleetArgs(
spotFleetRequestConfigData = spotFleetRequestConfigData,
)
}