com.pulumi.awsnative.datazone.kotlin.outputs.DataSourceRedshiftRunConfigurationInput.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.datazone.kotlin.outputs
import com.pulumi.core.Either
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* The configuration details of the Amazon Redshift data source.
* @property dataAccessRole The data access role included in the configuration details of the Amazon Redshift data source.
* @property redshiftCredentialConfiguration The details of the credentials required to access an Amazon Redshift cluster.
* @property redshiftStorage The details of the Amazon Redshift storage as part of the configuration of an Amazon Redshift data source run.
* @property relationalFilterConfigurations
*/
public data class DataSourceRedshiftRunConfigurationInput(
public val dataAccessRole: String? = null,
public val redshiftCredentialConfiguration: DataSourceRedshiftCredentialConfiguration,
public val redshiftStorage: Either,
public val relationalFilterConfigurations: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.datazone.outputs.DataSourceRedshiftRunConfigurationInput): DataSourceRedshiftRunConfigurationInput = DataSourceRedshiftRunConfigurationInput(
dataAccessRole = javaType.dataAccessRole().map({ args0 -> args0 }).orElse(null),
redshiftCredentialConfiguration = javaType.redshiftCredentialConfiguration().let({ args0 ->
com.pulumi.awsnative.datazone.kotlin.outputs.DataSourceRedshiftCredentialConfiguration.Companion.toKotlin(args0)
}),
redshiftStorage = javaType.redshiftStorage().transform(
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.datazone.kotlin.outputs.DataSourceRedshiftStorage0Properties.Companion.toKotlin(args0)
})
},
{ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.datazone.kotlin.outputs.DataSourceRedshiftStorage1Properties.Companion.toKotlin(args0)
})
},
),
relationalFilterConfigurations = javaType.relationalFilterConfigurations().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.datazone.kotlin.outputs.DataSourceRelationalFilterConfiguration.Companion.toKotlin(args0)
})
}),
)
}
}