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

com.pulumi.awsnative.databrew.kotlin.inputs.DatasetDatabaseInputDefinitionArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.databrew.kotlin.inputs

import com.pulumi.awsnative.databrew.inputs.DatasetDatabaseInputDefinitionArgs.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

/**
 *
 * @property databaseTableName Database table name
 * @property glueConnectionName Glue connection name
 * @property queryString Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs.
 * @property tempDirectory An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
 */
public data class DatasetDatabaseInputDefinitionArgs(
    public val databaseTableName: Output? = null,
    public val glueConnectionName: Output,
    public val queryString: Output? = null,
    public val tempDirectory: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.databrew.inputs.DatasetDatabaseInputDefinitionArgs =
        com.pulumi.awsnative.databrew.inputs.DatasetDatabaseInputDefinitionArgs.builder()
            .databaseTableName(databaseTableName?.applyValue({ args0 -> args0 }))
            .glueConnectionName(glueConnectionName.applyValue({ args0 -> args0 }))
            .queryString(queryString?.applyValue({ args0 -> args0 }))
            .tempDirectory(tempDirectory?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [DatasetDatabaseInputDefinitionArgs].
 */
@PulumiTagMarker
public class DatasetDatabaseInputDefinitionArgsBuilder internal constructor() {
    private var databaseTableName: Output? = null

    private var glueConnectionName: Output? = null

    private var queryString: Output? = null

    private var tempDirectory: Output? = null

    /**
     * @param value Database table name
     */
    @JvmName("afvbxkptgdsxdjib")
    public suspend fun databaseTableName(`value`: Output) {
        this.databaseTableName = value
    }

    /**
     * @param value Glue connection name
     */
    @JvmName("nkjgsuydpnlluohg")
    public suspend fun glueConnectionName(`value`: Output) {
        this.glueConnectionName = value
    }

    /**
     * @param value Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs.
     */
    @JvmName("vmbtxgtepjrltduf")
    public suspend fun queryString(`value`: Output) {
        this.queryString = value
    }

    /**
     * @param value An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
     */
    @JvmName("pqghbisvnolsqcbr")
    public suspend fun tempDirectory(`value`: Output) {
        this.tempDirectory = value
    }

    /**
     * @param value Database table name
     */
    @JvmName("ifrlbmdjkcmowlvb")
    public suspend fun databaseTableName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.databaseTableName = mapped
    }

    /**
     * @param value Glue connection name
     */
    @JvmName("btjevrdjxlccsvah")
    public suspend fun glueConnectionName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.glueConnectionName = mapped
    }

    /**
     * @param value Custom SQL to run against the provided AWS Glue connection. This SQL will be used as the input for DataBrew projects and jobs.
     */
    @JvmName("aneoriwuabpfyasq")
    public suspend fun queryString(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.queryString = mapped
    }

    /**
     * @param value An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
     */
    @JvmName("ulwvkwwlgkihdfsq")
    public suspend fun tempDirectory(`value`: DatasetS3LocationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tempDirectory = mapped
    }

    /**
     * @param argument An Amazon location that AWS Glue Data Catalog can use as a temporary directory.
     */
    @JvmName("boxkuljrtvawilpv")
    public suspend fun tempDirectory(argument: suspend DatasetS3LocationArgsBuilder.() -> Unit) {
        val toBeMapped = DatasetS3LocationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.tempDirectory = mapped
    }

    internal fun build(): DatasetDatabaseInputDefinitionArgs = DatasetDatabaseInputDefinitionArgs(
        databaseTableName = databaseTableName,
        glueConnectionName = glueConnectionName ?: throw PulumiNullFieldException("glueConnectionName"),
        queryString = queryString,
        tempDirectory = tempDirectory,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy