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

com.pulumi.awsnative.ssmquicksetup.kotlin.ConfigurationManagerArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ssmquicksetup.kotlin

import com.pulumi.awsnative.ssmquicksetup.ConfigurationManagerArgs.builder
import com.pulumi.awsnative.ssmquicksetup.kotlin.inputs.ConfigurationManagerConfigurationDefinitionArgs
import com.pulumi.awsnative.ssmquicksetup.kotlin.inputs.ConfigurationManagerConfigurationDefinitionArgsBuilder
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

/**
 * Definition of AWS::SSMQuickSetup::ConfigurationManager Resource Type
 * @property configurationDefinitions The definition of the Quick Setup configuration that the configuration manager deploys.
 * @property description The description of the configuration.
 * @property name The name of the configuration
 * @property tags Key-value pairs of metadata to assign to the configuration manager.
 */
public data class ConfigurationManagerArgs(
    public val configurationDefinitions: Output>? = null,
    public val description: Output? = null,
    public val name: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssmquicksetup.ConfigurationManagerArgs =
        com.pulumi.awsnative.ssmquicksetup.ConfigurationManagerArgs.builder()
            .configurationDefinitions(
                configurationDefinitions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [ConfigurationManagerArgs].
 */
@PulumiTagMarker
public class ConfigurationManagerArgsBuilder internal constructor() {
    private var configurationDefinitions:
        Output>? = null

    private var description: Output? = null

    private var name: Output? = null

    private var tags: Output>? = null

    /**
     * @param value The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("bivfhbpqhmcgwcxp")
    public suspend fun configurationDefinitions(`value`: Output>) {
        this.configurationDefinitions = value
    }

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

    /**
     * @param values The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("qolphqgtnmeyvaol")
    public suspend fun configurationDefinitions(values: List>) {
        this.configurationDefinitions = Output.all(values)
    }

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

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

    /**
     * @param value Key-value pairs of metadata to assign to the configuration manager.
     */
    @JvmName("oxujjvvnvvcnoleq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("hiftcvjanexufwpo")
    public suspend fun configurationDefinitions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configurationDefinitions = mapped
    }

    /**
     * @param argument The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("beeyiusupolpifim")
    public suspend fun configurationDefinitions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ConfigurationManagerConfigurationDefinitionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.configurationDefinitions = mapped
    }

    /**
     * @param argument The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("otahnknxansiypcb")
    public suspend fun configurationDefinitions(vararg argument: suspend ConfigurationManagerConfigurationDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ConfigurationManagerConfigurationDefinitionArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.configurationDefinitions = mapped
    }

    /**
     * @param argument The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("whctsajhnnenspsr")
    public suspend fun configurationDefinitions(argument: suspend ConfigurationManagerConfigurationDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ConfigurationManagerConfigurationDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.configurationDefinitions = mapped
    }

    /**
     * @param values The definition of the Quick Setup configuration that the configuration manager deploys.
     */
    @JvmName("ltpkmvvqjnxjprqq")
    public suspend fun configurationDefinitions(vararg values: ConfigurationManagerConfigurationDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configurationDefinitions = mapped
    }

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

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

    /**
     * @param value Key-value pairs of metadata to assign to the configuration manager.
     */
    @JvmName("tndmfqdvugwfjdpt")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs of metadata to assign to the configuration manager.
     */
    @JvmName("ljlbxdonuwvdsohe")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): ConfigurationManagerArgs = ConfigurationManagerArgs(
        configurationDefinitions = configurationDefinitions,
        description = description,
        name = name,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy