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

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

package com.pulumi.awsnative.amplifyuibuilder.kotlin

import com.pulumi.awsnative.amplifyuibuilder.ThemeArgs.builder
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ThemeValuesArgs
import com.pulumi.awsnative.amplifyuibuilder.kotlin.inputs.ThemeValuesArgsBuilder
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::AmplifyUIBuilder::Theme Resource Type
 * @property appId The unique ID for the Amplify app associated with the theme.
 * @property environmentName The name of the backend environment that is a part of the Amplify app.
 * @property name The name of the theme.
 * @property overrides Describes the properties that can be overriden to customize a theme.
 * @property tags One or more key-value pairs to use when tagging the theme.
 * @property values A list of key-value pairs that defines the properties of the theme.
 */
public data class ThemeArgs(
    public val appId: Output? = null,
    public val environmentName: Output? = null,
    public val name: Output? = null,
    public val overrides: Output>? = null,
    public val tags: Output>? = null,
    public val values: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.amplifyuibuilder.ThemeArgs =
        com.pulumi.awsnative.amplifyuibuilder.ThemeArgs.builder()
            .appId(appId?.applyValue({ args0 -> args0 }))
            .environmentName(environmentName?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .overrides(
                overrides?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .values(
                values?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [ThemeArgs].
 */
@PulumiTagMarker
public class ThemeArgsBuilder internal constructor() {
    private var appId: Output? = null

    private var environmentName: Output? = null

    private var name: Output? = null

    private var overrides: Output>? = null

    private var tags: Output>? = null

    private var values: Output>? = null

    /**
     * @param value The unique ID for the Amplify app associated with the theme.
     */
    @JvmName("hwuxkynveoobgpdr")
    public suspend fun appId(`value`: Output) {
        this.appId = value
    }

    /**
     * @param value The name of the backend environment that is a part of the Amplify app.
     */
    @JvmName("hsphbdwqqohyyxtb")
    public suspend fun environmentName(`value`: Output) {
        this.environmentName = value
    }

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

    /**
     * @param value Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("uagajdymfnxrurgg")
    public suspend fun overrides(`value`: Output>) {
        this.overrides = value
    }

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

    /**
     * @param values Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("bnueergurqyyvnjd")
    public suspend fun overrides(values: List>) {
        this.overrides = Output.all(values)
    }

    /**
     * @param value One or more key-value pairs to use when tagging the theme.
     */
    @JvmName("mhxunnpphnagqnjb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("rvnxodoeemrmcgnq")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

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

    /**
     * @param values A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("sckfjnynqvsetpvp")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The unique ID for the Amplify app associated with the theme.
     */
    @JvmName("mgdyrmfbbntfnjej")
    public suspend fun appId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.appId = mapped
    }

    /**
     * @param value The name of the backend environment that is a part of the Amplify app.
     */
    @JvmName("renirlkhukfskrks")
    public suspend fun environmentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentName = mapped
    }

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

    /**
     * @param value Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("shpbavjuxiolnpsq")
    public suspend fun overrides(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param argument Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("cpyibgwtsdsdmuqt")
    public suspend fun overrides(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("tdgmtectdmielkko")
    public suspend fun overrides(vararg argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param argument Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("fjrtnsfmfajjnlru")
    public suspend fun overrides(argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ThemeValuesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.overrides = mapped
    }

    /**
     * @param values Describes the properties that can be overriden to customize a theme.
     */
    @JvmName("koejexpjlxxorlik")
    public suspend fun overrides(vararg values: ThemeValuesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.overrides = mapped
    }

    /**
     * @param value One or more key-value pairs to use when tagging the theme.
     */
    @JvmName("doeiualxkenbybxk")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values One or more key-value pairs to use when tagging the theme.
     */
    @JvmName("rmpkxdiykjeslhil")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("pnaairanhhxdlmqj")
    public suspend fun values(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param argument A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("uqcepqbkfsptnttu")
    public suspend fun values(argument: List Unit>) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("cpfbfgbbleshkjfu")
    public suspend fun values(vararg argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { ThemeValuesArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param argument A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("fekckdjledmuwooa")
    public suspend fun values(argument: suspend ThemeValuesArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(ThemeValuesArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.values = mapped
    }

    /**
     * @param values A list of key-value pairs that defines the properties of the theme.
     */
    @JvmName("nmomwcogypsanbgf")
    public suspend fun values(vararg values: ThemeValuesArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): ThemeArgs = ThemeArgs(
        appId = appId,
        environmentName = environmentName,
        name = name,
        overrides = overrides,
        tags = tags,
        values = values,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy