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

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

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

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

import com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDatabaseResourceArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A structure for the database object.
 * @property catalogId The identifier for the Data Catalog. By default, it is the account ID of the caller.
 * @property name The name of the database resource. Unique to the Data Catalog.
 */
public data class PrincipalPermissionsDatabaseResourceArgs(
    public val catalogId: Output,
    public val name: Output,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDatabaseResourceArgs =
        com.pulumi.awsnative.lakeformation.inputs.PrincipalPermissionsDatabaseResourceArgs.builder()
            .catalogId(catalogId.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 })).build()
}

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

    private var name: Output? = null

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

    /**
     * @param value The name of the database resource. Unique to the Data Catalog.
     */
    @JvmName("kekqumrepcwciuxp")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The identifier for the Data Catalog. By default, it is the account ID of the caller.
     */
    @JvmName("arptjxnvsiugvwgm")
    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 resource. Unique to the Data Catalog.
     */
    @JvmName("ipvpeyxwyjfjjoss")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    internal fun build(): PrincipalPermissionsDatabaseResourceArgs =
        PrincipalPermissionsDatabaseResourceArgs(
            catalogId = catalogId ?: throw PulumiNullFieldException("catalogId"),
            name = name ?: throw PulumiNullFieldException("name"),
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy