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

com.pulumi.awsnative.ec2.kotlin.inputs.SpotFleetLaunchTemplateConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.ec2.inputs.SpotFleetLaunchTemplateConfigArgs.builder
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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property launchTemplateSpecification The launch template to use. Make sure that the launch template does not contain the `NetworkInterfaceId` parameter because you can't specify a network interface ID in a Spot Fleet.
 * @property overrides Any parameters that you specify override the same parameters in the launch template.
 */
public data class SpotFleetLaunchTemplateConfigArgs(
    public val launchTemplateSpecification: Output? =
        null,
    public val overrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.SpotFleetLaunchTemplateConfigArgs =
        com.pulumi.awsnative.ec2.inputs.SpotFleetLaunchTemplateConfigArgs.builder()
            .launchTemplateSpecification(
                launchTemplateSpecification?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .overrides(
                overrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [SpotFleetLaunchTemplateConfigArgs].
 */
@PulumiTagMarker
public class SpotFleetLaunchTemplateConfigArgsBuilder internal constructor() {
    private var launchTemplateSpecification: Output? =
        null

    private var overrides: Output>? = null

    /**
     * @param value The launch template to use. Make sure that the launch template does not contain the `NetworkInterfaceId` parameter because you can't specify a network interface ID in a Spot Fleet.
     */
    @JvmName("nottlnkkausobvgx")
    public suspend fun launchTemplateSpecification(`value`: Output) {
        this.launchTemplateSpecification = value
    }

    /**
     * @param value Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("astmupkucxltsyhp")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

    @JvmName("xfiukbnbplqdqwpu")
    public suspend fun overrides(vararg values: Output) {
        this.overrides = Output.all(values.asList())
    }

    /**
     * @param values Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("nadvmfvockexprxd")
    public suspend fun overrides(values: List>) {
        this.overrides = Output.all(values)
    }

    /**
     * @param value The launch template to use. Make sure that the launch template does not contain the `NetworkInterfaceId` parameter because you can't specify a network interface ID in a Spot Fleet.
     */
    @JvmName("oqmrdajxlynofgkb")
    public suspend fun launchTemplateSpecification(`value`: SpotFleetFleetLaunchTemplateSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplateSpecification = mapped
    }

    /**
     * @param argument The launch template to use. Make sure that the launch template does not contain the `NetworkInterfaceId` parameter because you can't specify a network interface ID in a Spot Fleet.
     */
    @JvmName("edsthexosbwqegdk")
    public suspend fun launchTemplateSpecification(argument: suspend SpotFleetFleetLaunchTemplateSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = SpotFleetFleetLaunchTemplateSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.launchTemplateSpecification = mapped
    }

    /**
     * @param value Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("xfjaqnlpjtjuhbux")
    public suspend fun overrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("oxxginwddhlxemvh")
    public suspend fun overrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            SpotFleetLaunchTemplateOverridesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("lkpgocrxqhgyfikv")
    public suspend fun overrides(vararg argument: suspend SpotFleetLaunchTemplateOverridesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            SpotFleetLaunchTemplateOverridesArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("cyywvieslrvspdfq")
    public suspend fun overrides(argument: suspend SpotFleetLaunchTemplateOverridesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            SpotFleetLaunchTemplateOverridesArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param values Any parameters that you specify override the same parameters in the launch template.
     */
    @JvmName("excymiwgleqedusx")
    public suspend fun overrides(vararg values: SpotFleetLaunchTemplateOverridesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    internal fun build(): SpotFleetLaunchTemplateConfigArgs = SpotFleetLaunchTemplateConfigArgs(
        launchTemplateSpecification = launchTemplateSpecification,
        overrides = overrides,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy