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

com.pulumi.awsnative.quicksight.kotlin.inputs.TemplateVersionDefinitionArgs.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.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.TemplateVersionDefinitionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property analysisDefaults
 * @property calculatedFields An array of calculated field definitions for the template.
 * @property columnConfigurations An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
 * @property dataSetConfigurations An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
 * @property filterGroups Filter definitions for a template.
 * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
 * @property options An array of option definitions for a template.
 * @property parameterDeclarations An array of parameter declarations for a template.
 * *Parameters* are named variables that can transfer a value for use by an action or an object.
 * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
 * @property sheets An array of sheet definitions for a template.
 */
public data class TemplateVersionDefinitionArgs(
    public val analysisDefaults: Output? = null,
    public val calculatedFields: Output>? = null,
    public val columnConfigurations: Output>? = null,
    public val dataSetConfigurations: Output>,
    public val filterGroups: Output>? = null,
    public val options: Output? = null,
    public val parameterDeclarations: Output>? = null,
    public val sheets: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.quicksight.inputs.TemplateVersionDefinitionArgs =
        com.pulumi.awsnative.quicksight.inputs.TemplateVersionDefinitionArgs.builder()
            .analysisDefaults(analysisDefaults?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .calculatedFields(
                calculatedFields?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .columnConfigurations(
                columnConfigurations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .dataSetConfigurations(
                dataSetConfigurations.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .filterGroups(
                filterGroups?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parameterDeclarations(
                parameterDeclarations?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .sheets(
                sheets?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [TemplateVersionDefinitionArgs].
 */
@PulumiTagMarker
public class TemplateVersionDefinitionArgsBuilder internal constructor() {
    private var analysisDefaults: Output? = null

    private var calculatedFields: Output>? = null

    private var columnConfigurations: Output>? = null

    private var dataSetConfigurations: Output>? = null

    private var filterGroups: Output>? = null

    private var options: Output? = null

    private var parameterDeclarations: Output>? = null

    private var sheets: Output>? = null

    /**
     * @param value
     */
    @JvmName("uxstwvljxmwhdtxc")
    public suspend fun analysisDefaults(`value`: Output) {
        this.analysisDefaults = value
    }

    /**
     * @param value An array of calculated field definitions for the template.
     */
    @JvmName("mustmcuwkeocxxow")
    public suspend fun calculatedFields(`value`: Output>) {
        this.calculatedFields = value
    }

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

    /**
     * @param values An array of calculated field definitions for the template.
     */
    @JvmName("aowxcrjuilewsiya")
    public suspend fun calculatedFields(values: List>) {
        this.calculatedFields = Output.all(values)
    }

    /**
     * @param value An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("woikkahqjuamnnft")
    public suspend fun columnConfigurations(`value`: Output>) {
        this.columnConfigurations = value
    }

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

    /**
     * @param values An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("mbhuvnoivwaltcyu")
    public suspend fun columnConfigurations(values: List>) {
        this.columnConfigurations = Output.all(values)
    }

    /**
     * @param value An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("lqumxvfqrekxbpvr")
    public suspend fun dataSetConfigurations(`value`: Output>) {
        this.dataSetConfigurations = value
    }

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

    /**
     * @param values An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("lavxenrvjumykngp")
    public suspend fun dataSetConfigurations(values: List>) {
        this.dataSetConfigurations = Output.all(values)
    }

    /**
     * @param value Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("xjfqjikuqaeuellc")
    public suspend fun filterGroups(`value`: Output>) {
        this.filterGroups = value
    }

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

    /**
     * @param values Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("euyaxqxnjgjwhuwa")
    public suspend fun filterGroups(values: List>) {
        this.filterGroups = Output.all(values)
    }

    /**
     * @param value An array of option definitions for a template.
     */
    @JvmName("tuecpqkwqmkiyloh")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("bjboqruwlkgeetgh")
    public suspend fun parameterDeclarations(`value`: Output>) {
        this.parameterDeclarations = value
    }

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

    /**
     * @param values An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("fkwnqetxigbmklli")
    public suspend fun parameterDeclarations(values: List>) {
        this.parameterDeclarations = Output.all(values)
    }

    /**
     * @param value An array of sheet definitions for a template.
     */
    @JvmName("ekqfehvubcogytyp")
    public suspend fun sheets(`value`: Output>) {
        this.sheets = value
    }

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

    /**
     * @param values An array of sheet definitions for a template.
     */
    @JvmName("kgwltpjfxdbedsis")
    public suspend fun sheets(values: List>) {
        this.sheets = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("vunetrlqemqunwjl")
    public suspend fun analysisDefaults(`value`: TemplateAnalysisDefaultsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.analysisDefaults = mapped
    }

    /**
     * @param argument
     */
    @JvmName("trgbdfukvurctpyx")
    public suspend fun analysisDefaults(argument: suspend TemplateAnalysisDefaultsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateAnalysisDefaultsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.analysisDefaults = mapped
    }

    /**
     * @param value An array of calculated field definitions for the template.
     */
    @JvmName("wfskgvmeyxphqopb")
    public suspend fun calculatedFields(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.calculatedFields = mapped
    }

    /**
     * @param argument An array of calculated field definitions for the template.
     */
    @JvmName("oddlpavfcqhjrjle")
    public suspend fun calculatedFields(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateCalculatedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param argument An array of calculated field definitions for the template.
     */
    @JvmName("npnetympvlscmoia")
    public suspend fun calculatedFields(vararg argument: suspend TemplateCalculatedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateCalculatedFieldArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param argument An array of calculated field definitions for the template.
     */
    @JvmName("ahnldbbtcwqjqojs")
    public suspend fun calculatedFields(argument: suspend TemplateCalculatedFieldArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateCalculatedFieldArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.calculatedFields = mapped
    }

    /**
     * @param values An array of calculated field definitions for the template.
     */
    @JvmName("iqfsvfdcpnphnfrw")
    public suspend fun calculatedFields(vararg values: TemplateCalculatedFieldArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.calculatedFields = mapped
    }

    /**
     * @param value An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("khertqovcgsiqsre")
    public suspend fun columnConfigurations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columnConfigurations = mapped
    }

    /**
     * @param argument An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("utvdtifxkbwboqnj")
    public suspend fun columnConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateColumnConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columnConfigurations = mapped
    }

    /**
     * @param argument An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("plrnudgekeqelwhd")
    public suspend fun columnConfigurations(vararg argument: suspend TemplateColumnConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateColumnConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.columnConfigurations = mapped
    }

    /**
     * @param argument An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("ofewwrfmqapehwqd")
    public suspend fun columnConfigurations(argument: suspend TemplateColumnConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateColumnConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.columnConfigurations = mapped
    }

    /**
     * @param values An array of template-level column configurations. Column configurations are used to set default formatting for a column that's used throughout a template.
     */
    @JvmName("bofhonstmduxlifn")
    public suspend fun columnConfigurations(vararg values: TemplateColumnConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columnConfigurations = mapped
    }

    /**
     * @param value An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("nykajlsojqcmqamm")
    public suspend fun dataSetConfigurations(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetConfigurations = mapped
    }

    /**
     * @param argument An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("axlbvxcoebdybqhp")
    public suspend fun dataSetConfigurations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateDataSetConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetConfigurations = mapped
    }

    /**
     * @param argument An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("pfgcwigjagbvfhuy")
    public suspend fun dataSetConfigurations(vararg argument: suspend TemplateDataSetConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateDataSetConfigurationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.dataSetConfigurations = mapped
    }

    /**
     * @param argument An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("xlenqoauwercqgbn")
    public suspend fun dataSetConfigurations(argument: suspend TemplateDataSetConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateDataSetConfigurationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.dataSetConfigurations = mapped
    }

    /**
     * @param values An array of dataset configurations. These configurations define the required columns for each dataset used within a template.
     */
    @JvmName("okcfmyfsbqplndle")
    public suspend fun dataSetConfigurations(vararg values: TemplateDataSetConfigurationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSetConfigurations = mapped
    }

    /**
     * @param value Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("mvkarxujmegdpwmr")
    public suspend fun filterGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.filterGroups = mapped
    }

    /**
     * @param argument Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("jukcvbrkmamwbaac")
    public suspend fun filterGroups(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateFilterGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filterGroups = mapped
    }

    /**
     * @param argument Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("dmmbtphvdupoddld")
    public suspend fun filterGroups(vararg argument: suspend TemplateFilterGroupArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateFilterGroupArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.filterGroups = mapped
    }

    /**
     * @param argument Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("utbpsmacijfjxvvh")
    public suspend fun filterGroups(argument: suspend TemplateFilterGroupArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TemplateFilterGroupArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.filterGroups = mapped
    }

    /**
     * @param values Filter definitions for a template.
     * For more information, see [Filtering Data](https://docs.aws.amazon.com/quicksight/latest/user/filtering-visual-data.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("yrvyiqnyhlokmnil")
    public suspend fun filterGroups(vararg values: TemplateFilterGroupArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.filterGroups = mapped
    }

    /**
     * @param value An array of option definitions for a template.
     */
    @JvmName("vosxhqxvufqatsdu")
    public suspend fun options(`value`: TemplateAssetOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument An array of option definitions for a template.
     */
    @JvmName("ikkimfotqedbfdui")
    public suspend fun options(argument: suspend TemplateAssetOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TemplateAssetOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param value An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("qutslxwgsukieeyw")
    public suspend fun parameterDeclarations(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameterDeclarations = mapped
    }

    /**
     * @param argument An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("yympqatqrnwpbfoj")
    public suspend fun parameterDeclarations(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateParameterDeclarationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameterDeclarations = mapped
    }

    /**
     * @param argument An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("gtvlygfawneevncc")
    public suspend fun parameterDeclarations(vararg argument: suspend TemplateParameterDeclarationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateParameterDeclarationArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.parameterDeclarations = mapped
    }

    /**
     * @param argument An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("tlvkrelyngqmitja")
    public suspend fun parameterDeclarations(argument: suspend TemplateParameterDeclarationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateParameterDeclarationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameterDeclarations = mapped
    }

    /**
     * @param values An array of parameter declarations for a template.
     * *Parameters* are named variables that can transfer a value for use by an action or an object.
     * For more information, see [Parameters in Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/parameters-in-quicksight.html) in the *Amazon QuickSight User Guide* .
     */
    @JvmName("kcvacuxyetiedbcg")
    public suspend fun parameterDeclarations(vararg values: TemplateParameterDeclarationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameterDeclarations = mapped
    }

    /**
     * @param value An array of sheet definitions for a template.
     */
    @JvmName("ewutlqruhdtkuvwd")
    public suspend fun sheets(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sheets = mapped
    }

    /**
     * @param argument An array of sheet definitions for a template.
     */
    @JvmName("yqgiyhbwirifcjqp")
    public suspend fun sheets(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            TemplateSheetDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sheets = mapped
    }

    /**
     * @param argument An array of sheet definitions for a template.
     */
    @JvmName("fqxpmfpectdymcrk")
    public suspend fun sheets(vararg argument: suspend TemplateSheetDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            TemplateSheetDefinitionArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.sheets = mapped
    }

    /**
     * @param argument An array of sheet definitions for a template.
     */
    @JvmName("fybrevdnhbdlluju")
    public suspend fun sheets(argument: suspend TemplateSheetDefinitionArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            TemplateSheetDefinitionArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.sheets = mapped
    }

    /**
     * @param values An array of sheet definitions for a template.
     */
    @JvmName("wgslgiktieafmpjs")
    public suspend fun sheets(vararg values: TemplateSheetDefinitionArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sheets = mapped
    }

    internal fun build(): TemplateVersionDefinitionArgs = TemplateVersionDefinitionArgs(
        analysisDefaults = analysisDefaults,
        calculatedFields = calculatedFields,
        columnConfigurations = columnConfigurations,
        dataSetConfigurations = dataSetConfigurations ?: throw
            PulumiNullFieldException("dataSetConfigurations"),
        filterGroups = filterGroups,
        options = options,
        parameterDeclarations = parameterDeclarations,
        sheets = sheets,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy