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

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

package com.pulumi.aws.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigArgs.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 Nested argument containing EC2 Launch Template to use. Defined below.
 * @property overrides Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
 */
public data class FleetLaunchTemplateConfigArgs(
    public val launchTemplateSpecification: Output? = null,
    public val overrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigArgs =
        com.pulumi.aws.ec2.inputs.FleetLaunchTemplateConfigArgs.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 [FleetLaunchTemplateConfigArgs].
 */
@PulumiTagMarker
public class FleetLaunchTemplateConfigArgsBuilder internal constructor() {
    private var launchTemplateSpecification:
        Output? = null

    private var overrides: Output>? = null

    /**
     * @param value Nested argument containing EC2 Launch Template to use. Defined below.
     */
    @JvmName("bhcjbupywgfdjwoa")
    public suspend fun launchTemplateSpecification(`value`: Output) {
        this.launchTemplateSpecification = value
    }

    /**
     * @param value Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("nraynnwrlrbfikja")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

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

    /**
     * @param values Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("evvkfhyooeadlkoy")
    public suspend fun overrides(values: List>) {
        this.overrides = Output.all(values)
    }

    /**
     * @param value Nested argument containing EC2 Launch Template to use. Defined below.
     */
    @JvmName("vuoofsmxosddmcbk")
    public suspend fun launchTemplateSpecification(`value`: FleetLaunchTemplateConfigLaunchTemplateSpecificationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplateSpecification = mapped
    }

    /**
     * @param argument Nested argument containing EC2 Launch Template to use. Defined below.
     */
    @JvmName("soebtrivsbcrxmuk")
    public suspend fun launchTemplateSpecification(argument: suspend FleetLaunchTemplateConfigLaunchTemplateSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = FleetLaunchTemplateConfigLaunchTemplateSpecificationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.launchTemplateSpecification = mapped
    }

    /**
     * @param value Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("hxidlprqixjlcncr")
    public suspend fun overrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("vkquwteykwigdpyw")
    public suspend fun overrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FleetLaunchTemplateConfigOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("oyxwrikpxeutcfbq")
    public suspend fun overrides(vararg argument: suspend FleetLaunchTemplateConfigOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FleetLaunchTemplateConfigOverrideArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("qqwqdrhmfohkcwxr")
    public suspend fun overrides(argument: suspend FleetLaunchTemplateConfigOverrideArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FleetLaunchTemplateConfigOverrideArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param values Nested argument(s) containing parameters to override the same parameters in the Launch Template. Defined below.
     */
    @JvmName("krgjwhlrrbjabwyh")
    public suspend fun overrides(vararg values: FleetLaunchTemplateConfigOverrideArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy