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

com.pulumi.awsnative.athena.kotlin.DataCatalogArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.athena.kotlin

import com.pulumi.awsnative.athena.DataCatalogArgs.builder
import com.pulumi.awsnative.athena.kotlin.enums.DataCatalogType
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::Athena::DataCatalog
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property description A description of the data catalog to be created.
 * @property name The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
 * @property parameters Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
 * @property tags A list of comma separated tags to add to the data catalog that is created.
 * @property type The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore.
 */
public data class DataCatalogArgs(
    public val description: Output? = null,
    public val name: Output? = null,
    public val parameters: Output>? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.athena.DataCatalogArgs =
        com.pulumi.awsnative.athena.DataCatalogArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            )
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DataCatalogArgs].
 */
@PulumiTagMarker
public class DataCatalogArgsBuilder internal constructor() {
    private var description: Output? = null

    private var name: Output? = null

    private var parameters: Output>? = null

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value A description of the data catalog to be created.
     */
    @JvmName("tnrjenvdglbwbfrn")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
     */
    @JvmName("uqtaspljcchtfonu")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
     */
    @JvmName("ncqijmsrbonpnnqn")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

    /**
     * @param value A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("glnhrbjoruqqakrj")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("tnxflifnpbrhthxx")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore.
     */
    @JvmName("kxbnwscxgglsvcmj")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value A description of the data catalog to be created.
     */
    @JvmName("rpxhippbiifnplqi")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The name of the data catalog to create. The catalog name must be unique for the AWS account and can use a maximum of 128 alphanumeric, underscore, at sign, or hyphen characters.
     */
    @JvmName("nokhmocfklbbkxtp")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
     */
    @JvmName("lvqsltoqooayohpn")
    public suspend fun parameters(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param values Specifies the Lambda function or functions to use for creating the data catalog. This is a mapping whose values depend on the catalog type.
     */
    @JvmName("pwkwkfmygwpeamnv")
    public fun parameters(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("ddowkkcuumgdpfxf")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("smiyxigqohmyeyes")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("ledpkkicxujknosr")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("mgxenigybsqavnjv")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values A list of comma separated tags to add to the data catalog that is created.
     */
    @JvmName("tiiqtnscyxwkgvys")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of data catalog to create: LAMBDA for a federated catalog, GLUE for AWS Glue Catalog, or HIVE for an external hive metastore.
     */
    @JvmName("hlundnnxwchbfrdt")
    public suspend fun type(`value`: DataCatalogType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DataCatalogArgs = DataCatalogArgs(
        description = description,
        name = name,
        parameters = parameters,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy