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

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

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

import com.pulumi.awsnative.ec2.inputs.InstanceLaunchTemplateSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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 LaunchTemplateName or the LaunchTemplateId, 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 version number of the launch template.
 */
public data class InstanceLaunchTemplateSpecificationArgs(
    public val launchTemplateId: Output? = null,
    public val launchTemplateName: Output? = null,
    public val version: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.InstanceLaunchTemplateSpecificationArgs =
        com.pulumi.awsnative.ec2.inputs.InstanceLaunchTemplateSpecificationArgs.builder()
            .launchTemplateId(launchTemplateId?.applyValue({ args0 -> args0 }))
            .launchTemplateName(launchTemplateName?.applyValue({ args0 -> args0 }))
            .version(version?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [InstanceLaunchTemplateSpecificationArgs].
 */
@PulumiTagMarker
public class InstanceLaunchTemplateSpecificationArgsBuilder 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 LaunchTemplateName or the LaunchTemplateId, but not both.
     */
    @JvmName("cttcwphnebepenke")
    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("pgsisjhruijitvds")
    public suspend fun launchTemplateName(`value`: Output) {
        this.launchTemplateName = value
    }

    /**
     * @param value The version number of the launch template.
     */
    @JvmName("fcyclqrherbkvcgs")
    public suspend fun version(`value`: Output) {
        this.version = value
    }

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

    /**
     * @param value The version number of the launch template.
     */
    @JvmName("plycsarelhrpxodf")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.version = mapped
    }

    internal fun build(): InstanceLaunchTemplateSpecificationArgs =
        InstanceLaunchTemplateSpecificationArgs(
            launchTemplateId = launchTemplateId,
            launchTemplateName = launchTemplateName,
            version = version,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy