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

com.pulumi.awsnative.quicksight.kotlin.DataSourceArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.quicksight.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.quicksight.DataSourceArgs.builder
import com.pulumi.awsnative.quicksight.kotlin.enums.DataSourceType
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceCredentialsArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceCredentialsArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceErrorInfoArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceErrorInfoArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceParametersArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceParametersArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceResourcePermissionArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceResourcePermissionArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceSslPropertiesArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceSslPropertiesArgsBuilder
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceVpcConnectionPropertiesArgs
import com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceVpcConnectionPropertiesArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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

/**
 * Definition of the AWS::QuickSight::DataSource Resource Type.
 * @property alternateDataSourceParameters 

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

* @property awsAccountId The AWS account ID. * @property credentials The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported. * @property dataSourceId An ID for the data source. This ID is unique per AWS Region for each AWS account. * @property dataSourceParameters The parameters that Amazon QuickSight uses to connect to your underlying source. * @property errorInfo Error information from the last update or the creation of the data source. * @property name A display name for the data source. * @property permissions A list of resource permissions on the data source. * @property sslProperties Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source. * @property tags Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. * @property type The type of the data source. To return a list of all data sources, use `ListDataSources` . * Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service. * @property vpcConnectionProperties Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. */ public data class DataSourceArgs( public val alternateDataSourceParameters: Output>? = null, public val awsAccountId: Output? = null, public val credentials: Output? = null, public val dataSourceId: Output? = null, public val dataSourceParameters: Output? = null, public val errorInfo: Output? = null, public val name: Output? = null, public val permissions: Output>? = null, public val sslProperties: Output? = null, public val tags: Output>? = null, public val type: Output? = null, public val vpcConnectionProperties: Output? = null, ) : ConvertibleToJava { override fun toJava(): com.pulumi.awsnative.quicksight.DataSourceArgs = com.pulumi.awsnative.quicksight.DataSourceArgs.builder() .alternateDataSourceParameters( alternateDataSourceParameters?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }), ) .awsAccountId(awsAccountId?.applyValue({ args0 -> args0 })) .credentials(credentials?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })) .dataSourceId(dataSourceId?.applyValue({ args0 -> args0 })) .dataSourceParameters( dataSourceParameters?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }), ) .errorInfo(errorInfo?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })) .name(name?.applyValue({ args0 -> args0 })) .permissions( permissions?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }), ) .sslProperties(sslProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })) .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) })) .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })) .vpcConnectionProperties( vpcConnectionProperties?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }), ).build() } /** * Builder for [DataSourceArgs]. */ @PulumiTagMarker public class DataSourceArgsBuilder internal constructor() { private var alternateDataSourceParameters: Output>? = null private var awsAccountId: Output? = null private var credentials: Output? = null private var dataSourceId: Output? = null private var dataSourceParameters: Output? = null private var errorInfo: Output? = null private var name: Output? = null private var permissions: Output>? = null private var sslProperties: Output? = null private var tags: Output>? = null private var type: Output? = null private var vpcConnectionProperties: Output? = null /** * @param value

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

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

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

*/ @JvmName("njfxqdwpciejyahm") public suspend fun alternateDataSourceParameters(values: List>) { this.alternateDataSourceParameters = Output.all(values) } /** * @param value The AWS account ID. */ @JvmName("kwjkojeamfcbaeqt") public suspend fun awsAccountId(`value`: Output) { this.awsAccountId = value } /** * @param value The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported. */ @JvmName("owsippctogrgpslj") public suspend fun credentials(`value`: Output) { this.credentials = value } /** * @param value An ID for the data source. This ID is unique per AWS Region for each AWS account. */ @JvmName("eokclqskwatbiofj") public suspend fun dataSourceId(`value`: Output) { this.dataSourceId = value } /** * @param value The parameters that Amazon QuickSight uses to connect to your underlying source. */ @JvmName("voitypstkvuvakje") public suspend fun dataSourceParameters(`value`: Output) { this.dataSourceParameters = value } /** * @param value Error information from the last update or the creation of the data source. */ @JvmName("atnfoafdoshxvvvt") public suspend fun errorInfo(`value`: Output) { this.errorInfo = value } /** * @param value A display name for the data source. */ @JvmName("qoxtsmvvncgfgyxl") public suspend fun name(`value`: Output) { this.name = value } /** * @param value A list of resource permissions on the data source. */ @JvmName("tabnuvlwjyjwevwg") public suspend fun permissions(`value`: Output>) { this.permissions = value } @JvmName("tfliywmpvjgifvjl") public suspend fun permissions(vararg values: Output) { this.permissions = Output.all(values.asList()) } /** * @param values A list of resource permissions on the data source. */ @JvmName("uwexrndolsekrtbj") public suspend fun permissions(values: List>) { this.permissions = Output.all(values) } /** * @param value Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source. */ @JvmName("tvjafcgbvrkcslbv") public suspend fun sslProperties(`value`: Output) { this.sslProperties = value } /** * @param value Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("dbngfoltnwuljxad") public suspend fun tags(`value`: Output>) { this.tags = value } @JvmName("vgbtsatpiwdftcoh") public suspend fun tags(vararg values: Output) { this.tags = Output.all(values.asList()) } /** * @param values Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("csjktbtxnuovfkbr") public suspend fun tags(values: List>) { this.tags = Output.all(values) } /** * @param value The type of the data source. To return a list of all data sources, use `ListDataSources` . * Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service. */ @JvmName("xhakukodqmbbjgjg") public suspend fun type(`value`: Output) { this.type = value } /** * @param value Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. */ @JvmName("twjjgtnhikdijcyq") public suspend fun vpcConnectionProperties(`value`: Output) { this.vpcConnectionProperties = value } /** * @param value

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

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

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

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

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

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

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

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

A set of alternate data source parameters that you want to share for the credentials * stored with this data source. The credentials are applied in tandem with the data source * parameters when you copy a data source by using a create or update request. The API * operation compares the DataSourceParameters structure that's in the request * with the structures in the AlternateDataSourceParameters allow list. If the * structures are an exact match, the request is allowed to use the credentials from this * existing data source. If the AlternateDataSourceParameters list is null, * the Credentials originally used with this DataSourceParameters * are automatically allowed.

*/ @JvmName("iobadgyrhjqyqjtj") public suspend fun alternateDataSourceParameters(vararg values: DataSourceParametersArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.alternateDataSourceParameters = mapped } /** * @param value The AWS account ID. */ @JvmName("yjebubfenuptgfsc") public suspend fun awsAccountId(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.awsAccountId = mapped } /** * @param value The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported. */ @JvmName("obopcqdxihucownk") public suspend fun credentials(`value`: DataSourceCredentialsArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.credentials = mapped } /** * @param argument The credentials Amazon QuickSight that uses to connect to your underlying source. Currently, only credentials based on user name and password are supported. */ @JvmName("xrvocflxctaqgsnn") public suspend fun credentials(argument: suspend DataSourceCredentialsArgsBuilder.() -> Unit) { val toBeMapped = DataSourceCredentialsArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.credentials = mapped } /** * @param value An ID for the data source. This ID is unique per AWS Region for each AWS account. */ @JvmName("yioiwhdihdvslkjl") public suspend fun dataSourceId(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.dataSourceId = mapped } /** * @param value The parameters that Amazon QuickSight uses to connect to your underlying source. */ @JvmName("hbgdaiypcwuaqkpa") public suspend fun dataSourceParameters(`value`: DataSourceParametersArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.dataSourceParameters = mapped } /** * @param argument The parameters that Amazon QuickSight uses to connect to your underlying source. */ @JvmName("osvfjcmokeglmtks") public suspend fun dataSourceParameters(argument: suspend DataSourceParametersArgsBuilder.() -> Unit) { val toBeMapped = DataSourceParametersArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.dataSourceParameters = mapped } /** * @param value Error information from the last update or the creation of the data source. */ @JvmName("yeebrklipmprvcpw") public suspend fun errorInfo(`value`: DataSourceErrorInfoArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.errorInfo = mapped } /** * @param argument Error information from the last update or the creation of the data source. */ @JvmName("nnyjqlqdvcmhnkdu") public suspend fun errorInfo(argument: suspend DataSourceErrorInfoArgsBuilder.() -> Unit) { val toBeMapped = DataSourceErrorInfoArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.errorInfo = mapped } /** * @param value A display name for the data source. */ @JvmName("kofkcciweewpckca") public suspend fun name(`value`: String?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.name = mapped } /** * @param value A list of resource permissions on the data source. */ @JvmName("awcrpqfmapnhakwj") public suspend fun permissions(`value`: List?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.permissions = mapped } /** * @param argument A list of resource permissions on the data source. */ @JvmName("vauvylgpxtjirhbw") public suspend fun permissions(argument: List Unit>) { val toBeMapped = argument.toList().map { DataSourceResourcePermissionArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.permissions = mapped } /** * @param argument A list of resource permissions on the data source. */ @JvmName("tiyiullhgsgmqsic") public suspend fun permissions(vararg argument: suspend DataSourceResourcePermissionArgsBuilder.() -> Unit) { val toBeMapped = argument.toList().map { DataSourceResourcePermissionArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.permissions = mapped } /** * @param argument A list of resource permissions on the data source. */ @JvmName("eohraoqsdrqwhvii") public suspend fun permissions(argument: suspend DataSourceResourcePermissionArgsBuilder.() -> Unit) { val toBeMapped = listOf( DataSourceResourcePermissionArgsBuilder().applySuspend { argument() }.build(), ) val mapped = of(toBeMapped) this.permissions = mapped } /** * @param values A list of resource permissions on the data source. */ @JvmName("bsdqiegltbvulupm") public suspend fun permissions(vararg values: DataSourceResourcePermissionArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.permissions = mapped } /** * @param value Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source. */ @JvmName("nkubnfruhohmrcfq") public suspend fun sslProperties(`value`: DataSourceSslPropertiesArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.sslProperties = mapped } /** * @param argument Secure Socket Layer (SSL) properties that apply when Amazon QuickSight connects to your underlying source. */ @JvmName("heauicvxpjpftmel") public suspend fun sslProperties(argument: suspend DataSourceSslPropertiesArgsBuilder.() -> Unit) { val toBeMapped = DataSourceSslPropertiesArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.sslProperties = mapped } /** * @param value Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("vglsxidaiqjvnfnw") public suspend fun tags(`value`: List?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.tags = mapped } /** * @param argument Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("nbxutiavmdlvnqsk") public suspend fun tags(argument: List Unit>) { val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.tags = mapped } /** * @param argument Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("gasjhkrfjylshoqs") public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) { val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() } val mapped = of(toBeMapped) this.tags = mapped } /** * @param argument Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("gukbuuuwlkpbxlxg") public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) { val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build()) val mapped = of(toBeMapped) this.tags = mapped } /** * @param values Contains a map of the key-value pairs for the resource tag or tags assigned to the data source. */ @JvmName("emhqwihnukpixush") public suspend fun tags(vararg values: TagArgs) { val toBeMapped = values.toList() val mapped = toBeMapped.let({ args0 -> of(args0) }) this.tags = mapped } /** * @param value The type of the data source. To return a list of all data sources, use `ListDataSources` . * Use `AMAZON_ELASTICSEARCH` for Amazon OpenSearch Service. */ @JvmName("gtjmlyccnstnwraq") public suspend fun type(`value`: DataSourceType?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.type = mapped } /** * @param value Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. */ @JvmName("pyqdyeaxofcfwfqb") public suspend fun vpcConnectionProperties(`value`: DataSourceVpcConnectionPropertiesArgs?) { val toBeMapped = value val mapped = toBeMapped?.let({ args0 -> of(args0) }) this.vpcConnectionProperties = mapped } /** * @param argument Use this parameter only when you want Amazon QuickSight to use a VPC connection when connecting to your underlying source. */ @JvmName("avqkphmtwrleoude") public suspend fun vpcConnectionProperties(argument: suspend DataSourceVpcConnectionPropertiesArgsBuilder.() -> Unit) { val toBeMapped = DataSourceVpcConnectionPropertiesArgsBuilder().applySuspend { argument() }.build() val mapped = of(toBeMapped) this.vpcConnectionProperties = mapped } internal fun build(): DataSourceArgs = DataSourceArgs( alternateDataSourceParameters = alternateDataSourceParameters, awsAccountId = awsAccountId, credentials = credentials, dataSourceId = dataSourceId, dataSourceParameters = dataSourceParameters, errorInfo = errorInfo, name = name, permissions = permissions, sslProperties = sslProperties, tags = tags, type = type, vpcConnectionProperties = vpcConnectionProperties, ) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy