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

com.pulumi.aws.glue.kotlin.inputs.CrawlerJdbcTargetArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.glue.kotlin.inputs

import com.pulumi.aws.glue.inputs.CrawlerJdbcTargetArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property connectionName The name of the connection to use to connect to the JDBC target.
 * @property enableAdditionalMetadatas Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
 * @property exclusions A list of glob patterns used to exclude from the crawl.
 * @property path The path of the JDBC target.
 */
public data class CrawlerJdbcTargetArgs(
    public val connectionName: Output,
    public val enableAdditionalMetadatas: Output>? = null,
    public val exclusions: Output>? = null,
    public val path: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.glue.inputs.CrawlerJdbcTargetArgs =
        com.pulumi.aws.glue.inputs.CrawlerJdbcTargetArgs.builder()
            .connectionName(connectionName.applyValue({ args0 -> args0 }))
            .enableAdditionalMetadatas(
                enableAdditionalMetadatas?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .exclusions(exclusions?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .path(path.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [CrawlerJdbcTargetArgs].
 */
@PulumiTagMarker
public class CrawlerJdbcTargetArgsBuilder internal constructor() {
    private var connectionName: Output? = null

    private var enableAdditionalMetadatas: Output>? = null

    private var exclusions: Output>? = null

    private var path: Output? = null

    /**
     * @param value The name of the connection to use to connect to the JDBC target.
     */
    @JvmName("wknqhbwpyagdtrbm")
    public suspend fun connectionName(`value`: Output) {
        this.connectionName = value
    }

    /**
     * @param value Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     */
    @JvmName("wbaijnconjjnrgin")
    public suspend fun enableAdditionalMetadatas(`value`: Output>) {
        this.enableAdditionalMetadatas = value
    }

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

    /**
     * @param values Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     */
    @JvmName("ldthlfvncjydmwxn")
    public suspend fun enableAdditionalMetadatas(values: List>) {
        this.enableAdditionalMetadatas = Output.all(values)
    }

    /**
     * @param value A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("hgtmbmefbjdyhnhk")
    public suspend fun exclusions(`value`: Output>) {
        this.exclusions = value
    }

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

    /**
     * @param values A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("lsbxfqyatbbaffbt")
    public suspend fun exclusions(values: List>) {
        this.exclusions = Output.all(values)
    }

    /**
     * @param value The path of the JDBC target.
     */
    @JvmName("vdubdyqyepvyjlss")
    public suspend fun path(`value`: Output) {
        this.path = value
    }

    /**
     * @param value The name of the connection to use to connect to the JDBC target.
     */
    @JvmName("auhncsybpjaisxdg")
    public suspend fun connectionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectionName = mapped
    }

    /**
     * @param value Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     */
    @JvmName("cigoegqnkewcfhxq")
    public suspend fun enableAdditionalMetadatas(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableAdditionalMetadatas = mapped
    }

    /**
     * @param values Specify a value of `RAWTYPES` or `COMMENTS` to enable additional metadata intable responses. `RAWTYPES` provides the native-level datatype. `COMMENTS` provides comments associated with a column or table in the database.
     */
    @JvmName("pmvliyxtprdiytsh")
    public suspend fun enableAdditionalMetadatas(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableAdditionalMetadatas = mapped
    }

    /**
     * @param value A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("yebqknliyefwhybw")
    public suspend fun exclusions(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param values A list of glob patterns used to exclude from the crawl.
     */
    @JvmName("wxlvdfdfekyvyykc")
    public suspend fun exclusions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.exclusions = mapped
    }

    /**
     * @param value The path of the JDBC target.
     */
    @JvmName("vdqhfldrlebkwldp")
    public suspend fun path(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.path = mapped
    }

    internal fun build(): CrawlerJdbcTargetArgs = CrawlerJdbcTargetArgs(
        connectionName = connectionName ?: throw PulumiNullFieldException("connectionName"),
        enableAdditionalMetadatas = enableAdditionalMetadatas,
        exclusions = exclusions,
        path = path ?: throw PulumiNullFieldException("path"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy