com.pulumi.awsnative.quicksight.kotlin.inputs.DataSetColumnLevelPermissionRuleArgs.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.DataSetColumnLevelPermissionRuleArgs.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.collections.List
import kotlin.jvm.JvmName
/**
* A rule defined to grant access on one or more restricted columns.
* Each dataset can have multiple rules.
* To create a restricted column, you add it to one or more rules.
* Each rule must contain at least one column and at least one user or group.
* To be able to see a restricted column, a user or group needs to be added
* to a rule for that column.
* @property columnNames An array of column names.
* @property principals An array of Amazon Resource Names (ARNs) for Amazon QuickSight users or groups.
*/
public data class DataSetColumnLevelPermissionRuleArgs(
public val columnNames: Output>? = null,
public val principals: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.quicksight.inputs.DataSetColumnLevelPermissionRuleArgs = com.pulumi.awsnative.quicksight.inputs.DataSetColumnLevelPermissionRuleArgs.builder()
.columnNames(columnNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.principals(principals?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [DataSetColumnLevelPermissionRuleArgs].
*/
@PulumiTagMarker
public class DataSetColumnLevelPermissionRuleArgsBuilder internal constructor() {
private var columnNames: Output>? = null
private var principals: Output>? = null
/**
* @param value An array of column names.
*/
@JvmName("rxhwopxmphqaaeah")
public suspend fun columnNames(`value`: Output>) {
this.columnNames = value
}
@JvmName("ueosddxabjhlbuhy")
public suspend fun columnNames(vararg values: Output) {
this.columnNames = Output.all(values.asList())
}
/**
* @param values An array of column names.
*/
@JvmName("bjsowyhgiuyltils")
public suspend fun columnNames(values: List