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

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

package com.pulumi.awsnative.quicksight.kotlin.inputs

import com.pulumi.awsnative.quicksight.inputs.DataSetS3SourceArgs.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

/**
 * 

A physical table type for an S3 data source.

* @property dataSourceArn

The Amazon Resource Name (ARN) for the data source.

* @property inputColumns

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
* @property uploadSettings Information about the format for the S3 source file or files. */ public data class DataSetS3SourceArgs( public val dataSourceArn: Output, public val inputColumns: Output>, public val uploadSettings: Output? = null, ) : ConvertibleToJava { override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DataSetS3SourceArgs = com.pulumi.awsnative.quicksight.inputs.DataSetS3SourceArgs.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 [DataSetS3SourceArgs]. */ @PulumiTagMarker public class DataSetS3SourceArgsBuilder internal constructor() { private var dataSourceArn: Output? = null private var inputColumns: Output>? = null private var uploadSettings: Output? = null /** * @param value

The Amazon Resource Name (ARN) for the data source.

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

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("bfdpupitnsngafbi") public suspend fun inputColumns(`value`: Output>) { this.inputColumns = value } @JvmName("nkqgddvsqojmjqpg") public suspend fun inputColumns(vararg values: Output) { this.inputColumns = Output.all(values.asList()) } /** * @param values

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("fydpyoqnvaspmjsh") public suspend fun inputColumns(values: List>) { this.inputColumns = Output.all(values) } /** * @param value Information about the format for the S3 source file or files. */ @JvmName("apkkwmhmqkkrpvlh") public suspend fun uploadSettings(`value`: Output) { this.uploadSettings = value } /** * @param value

The Amazon Resource Name (ARN) for the data source.

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

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("keurjwcsxeagxsnl") public suspend fun inputColumns(`value`: List) { val toBeMapped = value val mapped = toBeMapped.let({ args0 -> of(args0) }) this.inputColumns = mapped } /** * @param argument

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("wcunjvethhmonjdj") public suspend fun inputColumns(argument: List Unit>) { val toBeMapped = argument.toList().map { DataSetInputColumnArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.inputColumns = mapped } /** * @param argument

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("cnlvplojdscqpqky") public suspend fun inputColumns(vararg argument: suspend DataSetInputColumnArgsBuilder.() -> Unit) { val toBeMapped = argument.toList().map { DataSetInputColumnArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.inputColumns = mapped } /** * @param argument

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("hvpxcysfkoqruhje") public suspend fun inputColumns(argument: suspend DataSetInputColumnArgsBuilder.() -> Unit) { val toBeMapped = listOf(DataSetInputColumnArgsBuilder().applySuspend { argument() }.build()) val mapped = of(toBeMapped) this.inputColumns = mapped } /** * @param values

A physical table type for an S3 data source.

* *

For files that aren't JSON, only STRING data types are supported in input columns.

*
*/ @JvmName("vmjeroxyccptnigj") public suspend fun inputColumns(vararg values: DataSetInputColumnArgs) { 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. */ @JvmName("xnacbgiqpjiffnxp") public suspend fun uploadSettings(`value`: DataSetUploadSettingsArgs?) { 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. */ @JvmName("ubuvjpbmoivxryko") public suspend fun uploadSettings(argument: suspend DataSetUploadSettingsArgsBuilder.() -> Unit) { val toBeMapped = DataSetUploadSettingsArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.uploadSettings = mapped } internal fun build(): DataSetS3SourceArgs = DataSetS3SourceArgs( dataSourceArn = dataSourceArn ?: throw PulumiNullFieldException("dataSourceArn"), inputColumns = inputColumns ?: throw PulumiNullFieldException("inputColumns"), uploadSettings = uploadSettings, ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy