com.pulumi.awsnative.quicksight.kotlin.inputs.DataSetCustomSqlArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@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