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

com.pulumi.awsnative.quicksight.kotlin.ThemeArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.quicksight.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.quicksight.ThemeArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.inputs.ThemeConfigurationArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.ThemeConfigurationArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.ThemeResourcePermissionArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.ThemeResourcePermissionArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Definition of the AWS::QuickSight::Theme Resource Type.
 * @property awsAccountId The ID of the AWS account where you want to store the new theme.
 * @property baseThemeId The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use `ListThemes` or choose *Themes* from within an analysis.
 * @property configuration The theme configuration, which contains the theme display properties.
 * @property name A display name for the theme.
 * @property permissions A valid grouping of resource permissions to apply to the new theme.
 * @property tags A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
 * @property themeId An ID for the theme that you want to create. The theme ID is unique per AWS Region in each AWS account.
 * @property versionDescription A description of the first version of the theme that you're creating. Every time `UpdateTheme` is called, a new version is created. Each version of the theme has a description of the version in the `VersionDescription` field.
 */
public data class ThemeArgs(
    public val awsAccountId: Output? = null,
    public val baseThemeId: Output? = null,
    public val configuration: Output? = null,
    public val name: Output? = null,
    public val permissions: Output>? = null,
    public val tags: Output>? = null,
    public val themeId: Output? = null,
    public val versionDescription: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.ThemeArgs =
        com.pulumi.awsnative.quicksight.ThemeArgs.builder()
            .awsAccountId(awsAccountId?.applyValue({ args0 -> args0 }))
            .baseThemeId(baseThemeId?.applyValue({ args0 -> args0 }))
            .configuration(configuration?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .permissions(
                permissions?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .themeId(themeId?.applyValue({ args0 -> args0 }))
            .versionDescription(versionDescription?.applyValue({ args0 -> args0 })).build()
}

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

    private var baseThemeId: Output? = null

    private var configuration: Output? = null

    private var name: Output? = null

    private var permissions: Output>? = null

    private var tags: Output>? = null

    private var themeId: Output? = null

    private var versionDescription: Output? = null

    /**
     * @param value The ID of the AWS account where you want to store the new theme.
     */
    @JvmName("uphuqeuudnfrpgvn")
    public suspend fun awsAccountId(`value`: Output) {
        this.awsAccountId = value
    }

    /**
     * @param value The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use `ListThemes` or choose *Themes* from within an analysis.
     */
    @JvmName("fpicjgstoeftbehw")
    public suspend fun baseThemeId(`value`: Output) {
        this.baseThemeId = value
    }

    /**
     * @param value The theme configuration, which contains the theme display properties.
     */
    @JvmName("qrtcvldlihykcotd")
    public suspend fun configuration(`value`: Output) {
        this.configuration = value
    }

    /**
     * @param value A display name for the theme.
     */
    @JvmName("xkqkarxxirqwrbhk")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("geukkblinhnyfpfa")
    public suspend fun permissions(`value`: Output>) {
        this.permissions = value
    }

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

    /**
     * @param values A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("fjkupghrcucomfgi")
    public suspend fun permissions(values: List>) {
        this.permissions = Output.all(values)
    }

    /**
     * @param value A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("ockitomobtryfyci")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("rjeawoalciknjaeu")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value An ID for the theme that you want to create. The theme ID is unique per AWS Region in each AWS account.
     */
    @JvmName("yltepdvckitettyo")
    public suspend fun themeId(`value`: Output) {
        this.themeId = value
    }

    /**
     * @param value A description of the first version of the theme that you're creating. Every time `UpdateTheme` is called, a new version is created. Each version of the theme has a description of the version in the `VersionDescription` field.
     */
    @JvmName("wdrrrjkwiyvawvbq")
    public suspend fun versionDescription(`value`: Output) {
        this.versionDescription = value
    }

    /**
     * @param value The ID of the AWS account where you want to store the new theme.
     */
    @JvmName("fecmanpirwhawmpq")
    public suspend fun awsAccountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsAccountId = mapped
    }

    /**
     * @param value The ID of the theme that a custom theme will inherit from. All themes inherit from one of the starting themes defined by Amazon QuickSight. For a list of the starting themes, use `ListThemes` or choose *Themes* from within an analysis.
     */
    @JvmName("sepifaffrqxutdco")
    public suspend fun baseThemeId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.baseThemeId = mapped
    }

    /**
     * @param value The theme configuration, which contains the theme display properties.
     */
    @JvmName("ithqiijvtbwnumir")
    public suspend fun configuration(`value`: ThemeConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param argument The theme configuration, which contains the theme display properties.
     */
    @JvmName("cstuvlawwoarsmyx")
    public suspend fun configuration(argument: suspend ThemeConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ThemeConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.configuration = mapped
    }

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

    /**
     * @param value A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("qbsvpyjflteingpy")
    public suspend fun permissions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    /**
     * @param argument A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("huyjmshmetlehnpq")
    public suspend fun permissions(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ThemeResourcePermissionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.permissions = mapped
    }

    /**
     * @param argument A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("kkymerbmjkuwdprt")
    public suspend fun permissions(vararg argument: suspend ThemeResourcePermissionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ThemeResourcePermissionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.permissions = mapped
    }

    /**
     * @param argument A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("pxebljnypvgpulyc")
    public suspend fun permissions(argument: suspend ThemeResourcePermissionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ThemeResourcePermissionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.permissions = mapped
    }

    /**
     * @param values A valid grouping of resource permissions to apply to the new theme.
     */
    @JvmName("iifigtujeukhyiod")
    public suspend fun permissions(vararg values: ThemeResourcePermissionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.permissions = mapped
    }

    /**
     * @param value A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("oftighdlpxbmjhww")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("klvnjhbftrlujrwf")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("eeirrsymvlkguowt")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("hkyxmlrssdchogyj")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A map of the key-value pairs for the resource tag or tags that you want to add to the resource.
     */
    @JvmName("wqyppxeqprutsvfn")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value An ID for the theme that you want to create. The theme ID is unique per AWS Region in each AWS account.
     */
    @JvmName("jxxpkclnhspniqoy")
    public suspend fun themeId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.themeId = mapped
    }

    /**
     * @param value A description of the first version of the theme that you're creating. Every time `UpdateTheme` is called, a new version is created. Each version of the theme has a description of the version in the `VersionDescription` field.
     */
    @JvmName("jekrnbrsinqjhunp")
    public suspend fun versionDescription(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.versionDescription = mapped
    }

    internal fun build(): ThemeArgs = ThemeArgs(
        awsAccountId = awsAccountId,
        baseThemeId = baseThemeId,
        configuration = configuration,
        name = name,
        permissions = permissions,
        tags = tags,
        themeId = themeId,
        versionDescription = versionDescription,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy