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

com.pulumi.awsnative.quicksight.kotlin.inputs.DataSetCustomSqlArgs.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.DataSetCustomSqlArgs.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 built from the results of the custom SQL query.

* @property columns

The column schema from the SQL query result set.

* @property dataSourceArn

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

* @property name

A display name for the SQL query result.

* @property sqlQuery

The SQL query.

*/ public data class DataSetCustomSqlArgs( public val columns: Output>, public val dataSourceArn: Output, public val name: Output, public val sqlQuery: Output, ) : ConvertibleToJava { override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DataSetCustomSqlArgs = com.pulumi.awsnative.quicksight.inputs.DataSetCustomSqlArgs.builder() .columns( columns.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }), ) .dataSourceArn(dataSourceArn.applyValue({ args0 -> args0 })) .name(name.applyValue({ args0 -> args0 })) .sqlQuery(sqlQuery.applyValue({ args0 -> args0 })).build() } /** * Builder for [DataSetCustomSqlArgs]. */ @PulumiTagMarker public class DataSetCustomSqlArgsBuilder internal constructor() { private var columns: Output>? = null private var dataSourceArn: Output? = null private var name: Output? = null private var sqlQuery: Output? = null /** * @param value

The column schema from the SQL query result set.

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

The column schema from the SQL query result set.

*/ @JvmName("pkwmmidumducvpxi") public suspend fun columns(values: List>) { this.columns = Output.all(values) } /** * @param value

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

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

A display name for the SQL query result.

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

The SQL query.

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

The column schema from the SQL query result set.

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

The column schema from the SQL query result set.

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

The column schema from the SQL query result set.

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

The column schema from the SQL query result set.

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

The column schema from the SQL query result set.

*/ @JvmName("mlloebepqriemgox") public suspend fun columns(vararg values: DataSetInputColumnArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.columns = mapped } /** * @param value

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

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

A display name for the SQL query result.

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

The SQL query.

*/ @JvmName("uinyhngaxfwarxef") public suspend fun sqlQuery(`value`: String) { val toBeMapped = value val mapped = toBeMapped.let({ args0 -> of(args0) }) this.sqlQuery = mapped } internal fun build(): DataSetCustomSqlArgs = DataSetCustomSqlArgs( columns = columns ?: throw PulumiNullFieldException("columns"), dataSourceArn = dataSourceArn ?: throw PulumiNullFieldException("dataSourceArn"), name = name ?: throw PulumiNullFieldException("name"), sqlQuery = sqlQuery ?: throw PulumiNullFieldException("sqlQuery"), ) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy