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

com.pulumi.aws.quicksight.kotlin.inputs.DataSetPhysicalTableMapS3SourceArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.quicksight.kotlin.inputs

import com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapS3SourceArgs.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property dataSourceArn ARN of the data source.
 * @property inputColumns Column schema of the table. See input_columns.
 * @property uploadSettings Information about the format for the S3 source file or files. See upload_settings.
 */
public data class DataSetPhysicalTableMapS3SourceArgs(
    public val dataSourceArn: Output,
    public val inputColumns: Output>,
    public val uploadSettings: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapS3SourceArgs =
        com.pulumi.aws.quicksight.inputs.DataSetPhysicalTableMapS3SourceArgs.builder()
            .dataSourceArn(dataSourceArn.applyValue({ args0 -> args0 }))
            .inputColumns(
                inputColumns.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .uploadSettings(
                uploadSettings.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [DataSetPhysicalTableMapS3SourceArgs].
 */
@PulumiTagMarker
public class DataSetPhysicalTableMapS3SourceArgsBuilder internal constructor() {
    private var dataSourceArn: Output? = null

    private var inputColumns: Output>? = null

    private var uploadSettings: Output? = null

    /**
     * @param value ARN of the data source.
     */
    @JvmName("vpolglajqvvvjmds")
    public suspend fun dataSourceArn(`value`: Output) {
        this.dataSourceArn = value
    }

    /**
     * @param value Column schema of the table. See input_columns.
     */
    @JvmName("ctmkqpolqxlidvdt")
    public suspend fun inputColumns(`value`: Output>) {
        this.inputColumns = value
    }

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

    /**
     * @param values Column schema of the table. See input_columns.
     */
    @JvmName("elbjidfeepdmvvmq")
    public suspend fun inputColumns(values: List>) {
        this.inputColumns = Output.all(values)
    }

    /**
     * @param value Information about the format for the S3 source file or files. See upload_settings.
     */
    @JvmName("dctpruvgmnxnemrx")
    public suspend fun uploadSettings(`value`: Output) {
        this.uploadSettings = value
    }

    /**
     * @param value ARN of the data source.
     */
    @JvmName("qfbkgljvenuvafmq")
    public suspend fun dataSourceArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.dataSourceArn = mapped
    }

    /**
     * @param value Column schema of the table. See input_columns.
     */
    @JvmName("cymfwthgtdkoxjyv")
    public suspend fun inputColumns(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("dgwwtcraksjcsqdq")
    public suspend fun inputColumns(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSetPhysicalTableMapS3SourceInputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("omdeikcycldfctne")
    public suspend fun inputColumns(vararg argument: suspend DataSetPhysicalTableMapS3SourceInputColumnArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSetPhysicalTableMapS3SourceInputColumnArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param argument Column schema of the table. See input_columns.
     */
    @JvmName("mufpufqixwtetpmq")
    public suspend fun inputColumns(argument: suspend DataSetPhysicalTableMapS3SourceInputColumnArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            DataSetPhysicalTableMapS3SourceInputColumnArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.inputColumns = mapped
    }

    /**
     * @param values Column schema of the table. See input_columns.
     */
    @JvmName("ffvnufitqgicothm")
    public suspend fun inputColumns(vararg values: DataSetPhysicalTableMapS3SourceInputColumnArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.inputColumns = mapped
    }

    /**
     * @param value Information about the format for the S3 source file or files. See upload_settings.
     */
    @JvmName("ihrcriovqfdaojwe")
    public suspend fun uploadSettings(`value`: DataSetPhysicalTableMapS3SourceUploadSettingsArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.uploadSettings = mapped
    }

    /**
     * @param argument Information about the format for the S3 source file or files. See upload_settings.
     */
    @JvmName("qfadyldcysbubceo")
    public suspend fun uploadSettings(argument: suspend DataSetPhysicalTableMapS3SourceUploadSettingsArgsBuilder.() -> Unit) {
        val toBeMapped = DataSetPhysicalTableMapS3SourceUploadSettingsArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.uploadSettings = mapped
    }

    internal fun build(): DataSetPhysicalTableMapS3SourceArgs = DataSetPhysicalTableMapS3SourceArgs(
        dataSourceArn = dataSourceArn ?: throw PulumiNullFieldException("dataSourceArn"),
        inputColumns = inputColumns ?: throw PulumiNullFieldException("inputColumns"),
        uploadSettings = uploadSettings ?: throw PulumiNullFieldException("uploadSettings"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy