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

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

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

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

import com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableResourceArgs.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.jvm.JvmName

/**
 * A structure for the table object. A table is a metadata definition that represents your data. You can Grant and Revoke table privileges to a principal.
 * @property catalogId The identifier for the Data Catalog. By default, it is the account ID of the caller.
 * @property databaseName The name of the database for the table. Unique to a 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.
 * @property tableWildcard A wildcard object representing every table under a database.
 *  At least one of ``TableResource$Name`` or ``TableResource$TableWildcard`` is required.
 */
public data class PrincipalPermissionsTableResourceArgs(
    public val catalogId: Output,
    public val databaseName: Output,
    public val name: Output? = null,
    public val tableWildcard: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableResourceArgs =
        com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsTableResourceArgs.builder()
            .catalogId(catalogId.applyValue({ args0 -> args0 }))
            .databaseName(databaseName.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .tableWildcard(tableWildcard?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var databaseName: Output? = null

    private var name: Output? = null

    private var tableWildcard: Output? = null

    /**
     * @param value The identifier for the Data Catalog. By default, it is the account ID of the caller.
     */
    @JvmName("ftbdkxcvhinklfvv")
    public suspend fun catalogId(`value`: Output) {
        this.catalogId = value
    }

    /**
     * @param value The name of the database for the table. Unique to a 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("mpknowgwkwrnuflx")
    public suspend fun databaseName(`value`: Output) {
        this.databaseName = value
    }

    /**
     * @param value The name of the table.
     */
    @JvmName("itsmfocklqhxcojb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A wildcard object representing every table under a database.
     *  At least one of ``TableResource$Name`` or ``TableResource$TableWildcard`` is required.
     */
    @JvmName("moxsqvypeogbimpr")
    public suspend fun tableWildcard(`value`: Output) {
        this.tableWildcard = value
    }

    /**
     * @param value The identifier for the Data Catalog. By default, it is the account ID of the caller.
     */
    @JvmName("mcyyhrwpthaiexeo")
    public suspend fun catalogId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.catalogId = mapped
    }

    /**
     * @param value The name of the database for the table. Unique to a 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("bkuhaxdfibsrfayn")
    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.
     */
    @JvmName("iucsrkcjkympcmtt")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A wildcard object representing every table under a database.
     *  At least one of ``TableResource$Name`` or ``TableResource$TableWildcard`` is required.
     */
    @JvmName("pjsqbalvbfxthtng")
    public suspend fun tableWildcard(`value`: PrincipalPermissionsTableWildcardArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tableWildcard = mapped
    }

    /**
     * @param argument A wildcard object representing every table under a database.
     *  At least one of ``TableResource$Name`` or ``TableResource$TableWildcard`` is required.
     */
    @JvmName("emyjhicvhiarogwj")
    public suspend fun tableWildcard(argument: suspend PrincipalPermissionsTableWildcardArgsBuilder.() -> Unit) {
        val toBeMapped = PrincipalPermissionsTableWildcardArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.tableWildcard = mapped
    }

    internal fun build(): PrincipalPermissionsTableResourceArgs =
        PrincipalPermissionsTableResourceArgs(
            catalogId = catalogId ?: throw PulumiNullFieldException("catalogId"),
            databaseName = databaseName ?: throw PulumiNullFieldException("databaseName"),
            name = name,
            tableWildcard = tableWildcard,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy