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

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

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

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

import com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateSpecificationRequestArgs.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 launchTemplateId The ID of the launch template.
 * You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
 * @property launchTemplateName The name of the launch template.
 * You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
 * @property version The launch template version number, `$Latest` , or `$Default` . You must specify a value, otherwise the request fails.
 * If the value is `$Latest` , Amazon EC2 uses the latest version of the launch template.
 * If the value is `$Default` , Amazon EC2 uses the default version of the launch template.
 */
public data class Ec2FleetFleetLaunchTemplateSpecificationRequestArgs(
    public val launchTemplateId: Output? = null,
    public val launchTemplateName: Output? = null,
    public val version: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateSpecificationRequestArgs =
        com.pulumi.awsnative.ec2.inputs.Ec2FleetFleetLaunchTemplateSpecificationRequestArgs.builder()
            .launchTemplateId(launchTemplateId?.applyValue({ args0 -> args0 }))
            .launchTemplateName(launchTemplateName?.applyValue({ args0 -> args0 }))
            .version(version.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [Ec2FleetFleetLaunchTemplateSpecificationRequestArgs].
 */
@PulumiTagMarker
public class Ec2FleetFleetLaunchTemplateSpecificationRequestArgsBuilder internal constructor() {
    private var launchTemplateId: Output? = null

    private var launchTemplateName: Output? = null

    private var version: Output? = null

    /**
     * @param value The ID of the launch template.
     * You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
     */
    @JvmName("ctuoumrxjisndify")
    public suspend fun launchTemplateId(`value`: Output) {
        this.launchTemplateId = value
    }

    /**
     * @param value The name of the launch template.
     * You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
     */
    @JvmName("duqfnbyvnqkjkspf")
    public suspend fun launchTemplateName(`value`: Output) {
        this.launchTemplateName = value
    }

    /**
     * @param value The launch template version number, `$Latest` , or `$Default` . You must specify a value, otherwise the request fails.
     * If the value is `$Latest` , Amazon EC2 uses the latest version of the launch template.
     * If the value is `$Default` , Amazon EC2 uses the default version of the launch template.
     */
    @JvmName("ohxdykntcpjxegur")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

    /**
     * @param value The ID of the launch template.
     * You must specify the `LaunchTemplateId` or the `LaunchTemplateName` , but not both.
     */
    @JvmName("tybrgynguqiioxnn")
    public suspend fun launchTemplateId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplateId = mapped
    }

    /**
     * @param value The name of the launch template.
     * You must specify the `LaunchTemplateName` or the `LaunchTemplateId` , but not both.
     */
    @JvmName("mafgmdpwupydaglc")
    public suspend fun launchTemplateName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.launchTemplateName = mapped
    }

    /**
     * @param value The launch template version number, `$Latest` , or `$Default` . You must specify a value, otherwise the request fails.
     * If the value is `$Latest` , Amazon EC2 uses the latest version of the launch template.
     * If the value is `$Default` , Amazon EC2 uses the default version of the launch template.
     */
    @JvmName("jqjfjntfkcjepwyk")
    public suspend fun version(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): Ec2FleetFleetLaunchTemplateSpecificationRequestArgs =
        Ec2FleetFleetLaunchTemplateSpecificationRequestArgs(
            launchTemplateId = launchTemplateId,
            launchTemplateName = launchTemplateName,
            version = version ?: throw PulumiNullFieldException("version"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy