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

com.pulumi.awsnative.lakeformation.kotlin.inputs.PrincipalPermissionsTableWithColumnsResourceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.lakeformation.kotlin.inputs

import com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableWithColumnsResourceArgs.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 structure for a table with columns object. This object is only used when granting a SELECT permission.
 *  This object must take a value for at least one of ``ColumnsNames``, ``ColumnsIndexes``, or ``ColumnsWildcard``.
 * @property catalogId The identifier for the GLUDC where the location is registered with LFlong.
 * @property columnNames The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
 * @property columnWildcard A wildcard specified by a ``ColumnWildcard`` object. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
 * @property databaseName The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
 * @property name The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
 */
public data class PrincipalPermissionsTableWithColumnsResourceArgs(
    public val catalogId: Output,
    public val columnNames: Output>? = null,
    public val columnWildcard: Output? = null,
    public val databaseName: Output,
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableWithColumnsResourceArgs =
        com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableWithColumnsResourceArgs.builder()
            .catalogId(catalogId.applyValue({ args0 -> args0 }))
            .columnNames(columnNames?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .columnWildcard(columnWildcard?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .databaseName(databaseName.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PrincipalPermissionsTableWithColumnsResourceArgs].
 */
@PulumiTagMarker
public class PrincipalPermissionsTableWithColumnsResourceArgsBuilder internal constructor() {
    private var catalogId: Output? = null

    private var columnNames: Output>? = null

    private var columnWildcard: Output? = null

    private var databaseName: Output? = null

    private var name: Output? = null

    /**
     * @param value The identifier for the GLUDC where the location is registered with LFlong.
     */
    @JvmName("begpjhqsyykieqyk")
    public suspend fun catalogId(`value`: Output) {
        this.catalogId = value
    }

    /**
     * @param value The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("keihtijguliqfsmi")
    public suspend fun columnNames(`value`: Output>) {
        this.columnNames = value
    }

    @JvmName("siilhpfnaqqmfowh")
    public suspend fun columnNames(vararg values: Output) {
        this.columnNames = Output.all(values.asList())
    }

    /**
     * @param values The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("vwvrlbbucunjoalr")
    public suspend fun columnNames(values: List>) {
        this.columnNames = Output.all(values)
    }

    /**
     * @param value A wildcard specified by a ``ColumnWildcard`` object. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("tqfweofpphbalnal")
    public suspend fun columnWildcard(`value`: Output) {
        this.columnWildcard = value
    }

    /**
     * @param value The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
     */
    @JvmName("kdfokjjaqrdiqliy")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
     */
    @JvmName("wgyiedmdtxrmwxbn")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The identifier for the GLUDC where the location is registered with LFlong.
     */
    @JvmName("cvteapurluhrejbj")
    public suspend fun catalogId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.catalogId = mapped
    }

    /**
     * @param value The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("buoestdjmubvnyqm")
    public suspend fun columnNames(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columnNames = mapped
    }

    /**
     * @param values The list of column names for the table. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("ywyrvnvohsbqguqy")
    public suspend fun columnNames(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.columnNames = mapped
    }

    /**
     * @param value A wildcard specified by a ``ColumnWildcard`` object. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("rweehyregkhhisnx")
    public suspend fun columnWildcard(`value`: PrincipalPermissionsColumnWildcardArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.columnWildcard = mapped
    }

    /**
     * @param argument A wildcard specified by a ``ColumnWildcard`` object. At least one of ``ColumnNames`` or ``ColumnWildcard`` is required.
     */
    @JvmName("gfhmkchqcqvfbxew")
    public suspend fun columnWildcard(argument: suspend PrincipalPermissionsColumnWildcardArgsBuilder.() -> Unit) {
        val toBeMapped = PrincipalPermissionsColumnWildcardArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.columnWildcard = mapped
    }

    /**
     * @param value The name of the database for the table with columns resource. Unique to the Data Catalog. A database is a set of associated table definitions organized into a logical group. You can Grant and Revoke database privileges to a principal.
     */
    @JvmName("bbgrcleqoqsxjymd")
    public suspend fun databaseName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.databaseName = mapped
    }

    /**
     * @param value The name of the table resource. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
     */
    @JvmName("qhcxhkmpaalaapgn")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): PrincipalPermissionsTableWithColumnsResourceArgs =
        PrincipalPermissionsTableWithColumnsResourceArgs(
            catalogId = catalogId ?: throw PulumiNullFieldException("catalogId"),
            columnNames = columnNames,
            columnWildcard = columnWildcard,
            databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy