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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.DistributionConfigurationLaunchTemplateConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.DistributionConfigurationLaunchTemplateConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * launchTemplateConfiguration settings that apply to image distribution.
 * @property accountId The account ID that this configuration applies to.
 * @property launchTemplateId Identifies the EC2 launch template to use.
 * @property setDefaultVersion Set the specified EC2 launch template as the default launch template for the specified account.
 */
public data class DistributionConfigurationLaunchTemplateConfigurationArgs(
    public val accountId: Output? = null,
    public val launchTemplateId: Output? = null,
    public val setDefaultVersion: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.DistributionConfigurationLaunchTemplateConfigurationArgs =
        com.pulumi.awsnative.imagebuilder.inputs.DistributionConfigurationLaunchTemplateConfigurationArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .launchTemplateId(launchTemplateId?.applyValue({ args0 -> args0 }))
            .setDefaultVersion(setDefaultVersion?.applyValue({ args0 -> args0 })).build()
}

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

    private var launchTemplateId: Output? = null

    private var setDefaultVersion: Output? = null

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

    /**
     * @param value Identifies the EC2 launch template to use.
     */
    @JvmName("ouclwxbhdbdooxin")
    public suspend fun launchTemplateId(`value`: Output) {
        this.launchTemplateId = value
    }

    /**
     * @param value Set the specified EC2 launch template as the default launch template for the specified account.
     */
    @JvmName("ryepsofbacfucqsa")
    public suspend fun setDefaultVersion(`value`: Output) {
        this.setDefaultVersion = value
    }

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

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

    /**
     * @param value Set the specified EC2 launch template as the default launch template for the specified account.
     */
    @JvmName("kxiddukkiifjcwob")
    public suspend fun setDefaultVersion(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.setDefaultVersion = mapped
    }

    internal fun build(): DistributionConfigurationLaunchTemplateConfigurationArgs =
        DistributionConfigurationLaunchTemplateConfigurationArgs(
            accountId = accountId,
            launchTemplateId = launchTemplateId,
            setDefaultVersion = setDefaultVersion,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy