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

com.pulumi.aws.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionLaunchTemplateConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.imagebuilder.kotlin.inputs

import com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionLaunchTemplateConfigurationArgs.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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property accountId The account ID that this configuration applies to.
 * @property default Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`.
 * @property launchTemplateId The ID of the Amazon EC2 launch template to use.
 */
public data class DistributionConfigurationDistributionLaunchTemplateConfigurationArgs(
    public val accountId: Output? = null,
    public val default: Output? = null,
    public val launchTemplateId: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionLaunchTemplateConfigurationArgs =
        com.pulumi.aws.imagebuilder.inputs.DistributionConfigurationDistributionLaunchTemplateConfigurationArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .default_(default?.applyValue({ args0 -> args0 }))
            .launchTemplateId(launchTemplateId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DistributionConfigurationDistributionLaunchTemplateConfigurationArgs].
 */
@PulumiTagMarker
public class DistributionConfigurationDistributionLaunchTemplateConfigurationArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var default: Output? = null

    private var launchTemplateId: Output? = null

    /**
     * @param value The account ID that this configuration applies to.
     */
    @JvmName("qwnxbonnnmtkfkoc")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`.
     */
    @JvmName("hhopjfothrmqjnnc")
    public suspend fun default(`value`: Output) {
        this.default = value
    }

    /**
     * @param value The ID of the Amazon EC2 launch template to use.
     */
    @JvmName("ycqlihvpfugvnfgb")
    public suspend fun launchTemplateId(`value`: Output) {
        this.launchTemplateId = value
    }

    /**
     * @param value The account ID that this configuration applies to.
     */
    @JvmName("gjciywpldsdffmsp")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value Indicates whether to set the specified Amazon EC2 launch template as the default launch template. Defaults to `true`.
     */
    @JvmName("wwjuhrxsmqcxfkev")
    public suspend fun default(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.default = mapped
    }

    /**
     * @param value The ID of the Amazon EC2 launch template to use.
     */
    @JvmName("pujtmpbtgfiqfcwj")
    public suspend fun launchTemplateId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.launchTemplateId = mapped
    }

    internal fun build(): DistributionConfigurationDistributionLaunchTemplateConfigurationArgs =
        DistributionConfigurationDistributionLaunchTemplateConfigurationArgs(
            accountId = accountId,
            default = default,
            launchTemplateId = launchTemplateId ?: throw PulumiNullFieldException("launchTemplateId"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy