
com.pulumi.awsnative.quicksight.kotlin.inputs.DataSourceAthenaParametersArgs.kt Maven / Gradle / Ivy
Show all versions of pulumi-aws-native-kotlin Show documentation
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.quicksight.kotlin.inputs
import com.pulumi.awsnative.quicksight.inputs.DataSourceAthenaParametersArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Parameters for Amazon Athena.
* @property roleArn Use the RoleArn
structure to override an account-wide role for a specific Athena data source. For example, say an account administrator has turned off all Athena access with an account-wide role. The administrator can then use RoleArn
to bypass the account-wide role and allow Athena access for the single Athena data source that is specified in the structure, even if the account-wide role forbidding Athena access is still active.
* @property workGroup The workgroup that Amazon Athena uses.
*/
public data class DataSourceAthenaParametersArgs(
public val roleArn: Output? = null,
public val workGroup: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DataSourceAthenaParametersArgs =
com.pulumi.awsnative.quicksight.inputs.DataSourceAthenaParametersArgs.builder()
.roleArn(roleArn?.applyValue({ args0 -> args0 }))
.workGroup(workGroup?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [DataSourceAthenaParametersArgs].
*/
@PulumiTagMarker
public class DataSourceAthenaParametersArgsBuilder internal constructor() {
private var roleArn: Output? = null
private var workGroup: Output? = null
/**
* @param value Use the RoleArn
structure to override an account-wide role for a specific Athena data source. For example, say an account administrator has turned off all Athena access with an account-wide role. The administrator can then use RoleArn
to bypass the account-wide role and allow Athena access for the single Athena data source that is specified in the structure, even if the account-wide role forbidding Athena access is still active.
*/
@JvmName("emrbajbwyeutmsmc")
public suspend fun roleArn(`value`: Output) {
this.roleArn = value
}
/**
* @param value The workgroup that Amazon Athena uses.
*/
@JvmName("csrgieswrnfrticw")
public suspend fun workGroup(`value`: Output) {
this.workGroup = value
}
/**
* @param value Use the RoleArn
structure to override an account-wide role for a specific Athena data source. For example, say an account administrator has turned off all Athena access with an account-wide role. The administrator can then use RoleArn
to bypass the account-wide role and allow Athena access for the single Athena data source that is specified in the structure, even if the account-wide role forbidding Athena access is still active.
*/
@JvmName("lbuiceevwlfmnvop")
public suspend fun roleArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.roleArn = mapped
}
/**
* @param value The workgroup that Amazon Athena uses.
*/
@JvmName("bbyyuwsgrlduflgb")
public suspend fun workGroup(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.workGroup = mapped
}
internal fun build(): DataSourceAthenaParametersArgs = DataSourceAthenaParametersArgs(
roleArn = roleArn,
workGroup = workGroup,
)
}