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

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

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

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

import com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateConfigRequestArgs.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. You must specify either the launch template ID or launch template name in the request.
 * @property overrides Any parameters that you specify override the same parameters in the launch template.
 * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
 */
public data class Ec2FleetFleetLaunchTemplateConfigRequestArgs(
    public val launchTemplateSpecification: Output? = null,
    public val overrides: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateConfigRequestArgs =
        com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateConfigRequestArgs.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 [Ec2FleetFleetLaunchTemplateConfigRequestArgs].
 */
@PulumiTagMarker
public class Ec2FleetFleetLaunchTemplateConfigRequestArgsBuilder internal constructor() {
    private var launchTemplateSpecification:
        Output? = null

    private var overrides: Output>? = null

    /**
     * @param value The launch template to use. You must specify either the launch template ID or launch template name in the request.
     */
    @JvmName("odxsdnwtpxcnjrsf")
    public suspend fun launchTemplateSpecification(`value`: Output) {
        this.launchTemplateSpecification = value
    }

    /**
     * @param value Any parameters that you specify override the same parameters in the launch template.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("bukhtdyapjtwmxpo")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

    @JvmName("giiiurdkiuutxkgp")
    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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("jxugrywjphjjaabr")
    public suspend fun overrides(values: List>) {
        this.overrides = Output.all(values)
    }

    /**
     * @param value The launch template to use. You must specify either the launch template ID or launch template name in the request.
     */
    @JvmName("gqncbebstorgcyse")
    public suspend fun launchTemplateSpecification(`value`: Ec2FleetFleetLaunchTemplateSpecificationRequestArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplateSpecification = mapped
    }

    /**
     * @param argument The launch template to use. You must specify either the launch template ID or launch template name in the request.
     */
    @JvmName("kcclkfbtcasqmppw")
    public suspend fun launchTemplateSpecification(argument: suspend Ec2FleetFleetLaunchTemplateSpecificationRequestArgsBuilder.() -> Unit) {
        val toBeMapped = Ec2FleetFleetLaunchTemplateSpecificationRequestArgsBuilder().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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("qnlcvqthksjyixei")
    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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("wjsqcuxsyevfoknm")
    public suspend fun overrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            Ec2FleetFleetLaunchTemplateOverridesRequestArgsBuilder().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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("ixbhymahfdfhmhge")
    public suspend fun overrides(vararg argument: suspend Ec2FleetFleetLaunchTemplateOverridesRequestArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            Ec2FleetFleetLaunchTemplateOverridesRequestArgsBuilder().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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("ecsyhlshlqnpldjo")
    public suspend fun overrides(argument: suspend Ec2FleetFleetLaunchTemplateOverridesRequestArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            Ec2FleetFleetLaunchTemplateOverridesRequestArgsBuilder().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.
     * For fleets of type `request` and `maintain` , a maximum of 300 items is allowed across all launch templates.
     */
    @JvmName("duiyoxmuosbfqihj")
    public suspend fun overrides(vararg values: Ec2FleetFleetLaunchTemplateOverridesRequestArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy