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

com.pulumi.awsnative.imagebuilder.kotlin.DistributionConfigurationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin

import com.pulumi.awsnative.imagebuilder.DistributionConfigurationArgs.builder
import com.pulumi.awsnative.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionArgs
import com.pulumi.awsnative.imagebuilder.kotlin.inputs.DistributionConfigurationDistributionArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::ImageBuilder::DistributionConfiguration
 * @property description The description of the distribution configuration.
 * @property distributions The distributions of the distribution configuration.
 * @property name The name of the distribution configuration.
 * @property tags The tags associated with the component.
 */
public data class DistributionConfigurationArgs(
    public val description: Output? = null,
    public val distributions: Output>? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.DistributionConfigurationArgs =
        com.pulumi.awsnative.imagebuilder.DistributionConfigurationArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .distributions(
                distributions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [DistributionConfigurationArgs].
 */
@PulumiTagMarker
public class DistributionConfigurationArgsBuilder internal constructor() {
    private var description: Output? = null

    private var distributions: Output>? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The description of the distribution configuration.
     */
    @JvmName("sfwhlkgnwgggmtit")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The distributions of the distribution configuration.
     */
    @JvmName("fbeuokpqijtvlnjx")
    public suspend fun distributions(`value`: Output>) {
        this.distributions = value
    }

    @JvmName("xpbbpnaicjfhfgoj")
    public suspend fun distributions(vararg values: Output) {
        this.distributions = Output.all(values.asList())
    }

    /**
     * @param values The distributions of the distribution configuration.
     */
    @JvmName("ryofiqypupgnwsna")
    public suspend fun distributions(values: List>) {
        this.distributions = Output.all(values)
    }

    /**
     * @param value The name of the distribution configuration.
     */
    @JvmName("jdsmtwyaqclykbog")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The tags associated with the component.
     */
    @JvmName("shpmvpdhepmwfkha")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The description of the distribution configuration.
     */
    @JvmName("solwjxcwowcgvyle")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The distributions of the distribution configuration.
     */
    @JvmName("jospybqatcryfesc")
    public suspend fun distributions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.distributions = mapped
    }

    /**
     * @param argument The distributions of the distribution configuration.
     */
    @JvmName("feaevlvdqbegamdm")
    public suspend fun distributions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DistributionConfigurationDistributionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.distributions = mapped
    }

    /**
     * @param argument The distributions of the distribution configuration.
     */
    @JvmName("winngfatxqgqoplv")
    public suspend fun distributions(vararg argument: suspend DistributionConfigurationDistributionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DistributionConfigurationDistributionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.distributions = mapped
    }

    /**
     * @param argument The distributions of the distribution configuration.
     */
    @JvmName("ndmcygathbxctjgj")
    public suspend fun distributions(argument: suspend DistributionConfigurationDistributionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DistributionConfigurationDistributionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.distributions = mapped
    }

    /**
     * @param values The distributions of the distribution configuration.
     */
    @JvmName("yuiikfqwpdbjscrc")
    public suspend fun distributions(vararg values: DistributionConfigurationDistributionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.distributions = mapped
    }

    /**
     * @param value The name of the distribution configuration.
     */
    @JvmName("khqimyoprybactil")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The tags associated with the component.
     */
    @JvmName("wptbmqpsqisdqlrv")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values The tags associated with the component.
     */
    @JvmName("pbppccmasrbkwqce")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): DistributionConfigurationArgs = DistributionConfigurationArgs(
        description = description,
        distributions = distributions,
        name = name,
        tags = tags,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy