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

com.pulumi.awsnative.datazone.kotlin.DataSourceArgs.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.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datazone.kotlin

import com.pulumi.awsnative.datazone.DataSourceArgs.builder
import com.pulumi.awsnative.datazone.kotlin.enums.DataSourceEnableSetting
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceConfigurationInput0PropertiesArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceConfigurationInput1PropertiesArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceFormInputArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceFormInputArgsBuilder
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceRecommendationConfigurationArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceRecommendationConfigurationArgsBuilder
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceScheduleConfigurationArgs
import com.pulumi.awsnative.datazone.kotlin.inputs.DataSourceScheduleConfigurationArgsBuilder
import com.pulumi.core.Either
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * A data source is used to import technical metadata of assets (data) from the source databases or data warehouses into Amazon DataZone.
 * @property assetFormsInput The metadata forms that are to be attached to the assets that this data source works with.
 * @property configuration Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.
 * @property description The description of the data source.
 * @property domainIdentifier The ID of the Amazon DataZone domain where the data source is created.
 * @property enableSetting Specifies whether the data source is enabled.
 * @property environmentIdentifier The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
 * @property name The name of the data source.
 * @property projectIdentifier The identifier of the Amazon DataZone project in which you want to add the data source.
 * @property publishOnImport Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
 * @property recommendation Specifies whether the business name generation is to be enabled for this data source.
 * @property schedule The schedule of the data source runs.
 * @property type The type of the data source.
 */
public data class DataSourceArgs(
    public val assetFormsInput: Output>? = null,
    public val configuration: Output>? =
        null,
    public val description: Output? = null,
    public val domainIdentifier: Output? = null,
    public val enableSetting: Output? = null,
    public val environmentIdentifier: Output? = null,
    public val name: Output? = null,
    public val projectIdentifier: Output? = null,
    public val publishOnImport: Output? = null,
    public val recommendation: Output? = null,
    public val schedule: Output? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.datazone.DataSourceArgs =
        com.pulumi.awsnative.datazone.DataSourceArgs.builder()
            .assetFormsInput(
                assetFormsInput?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .configuration(
                configuration?.applyValue({ args0 ->
                    args0.transform({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    }, { args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            )
            .description(description?.applyValue({ args0 -> args0 }))
            .domainIdentifier(domainIdentifier?.applyValue({ args0 -> args0 }))
            .enableSetting(enableSetting?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .environmentIdentifier(environmentIdentifier?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .projectIdentifier(projectIdentifier?.applyValue({ args0 -> args0 }))
            .publishOnImport(publishOnImport?.applyValue({ args0 -> args0 }))
            .recommendation(recommendation?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [DataSourceArgs].
 */
@PulumiTagMarker
public class DataSourceArgsBuilder internal constructor() {
    private var assetFormsInput: Output>? = null

    private var configuration:
        Output>? =
        null

    private var description: Output? = null

    private var domainIdentifier: Output? = null

    private var enableSetting: Output? = null

    private var environmentIdentifier: Output? = null

    private var name: Output? = null

    private var projectIdentifier: Output? = null

    private var publishOnImport: Output? = null

    private var recommendation: Output? = null

    private var schedule: Output? = null

    private var type: Output? = null

    /**
     * @param value The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("oxlfppqgnqncekoj")
    public suspend fun assetFormsInput(`value`: Output>) {
        this.assetFormsInput = value
    }

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

    /**
     * @param values The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("qmsqipxesclbwrhu")
    public suspend fun assetFormsInput(values: List>) {
        this.assetFormsInput = Output.all(values)
    }

    /**
     * @param value Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.
     */
    @JvmName("jwcqxlxnpsygsgvm")
    public suspend fun configuration(`value`: Output>) {
        this.configuration = value
    }

    /**
     * @param value The description of the data source.
     */
    @JvmName("ldksypaanxntkelr")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value The ID of the Amazon DataZone domain where the data source is created.
     */
    @JvmName("oinpdaibnnndegxc")
    public suspend fun domainIdentifier(`value`: Output) {
        this.domainIdentifier = value
    }

    /**
     * @param value Specifies whether the data source is enabled.
     */
    @JvmName("ejjgygayolxewxeg")
    public suspend fun enableSetting(`value`: Output) {
        this.enableSetting = value
    }

    /**
     * @param value The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
     */
    @JvmName("uwvvecljoglwwlse")
    public suspend fun environmentIdentifier(`value`: Output) {
        this.environmentIdentifier = value
    }

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

    /**
     * @param value The identifier of the Amazon DataZone project in which you want to add the data source.
     */
    @JvmName("gvhuuysqipcltjdq")
    public suspend fun projectIdentifier(`value`: Output) {
        this.projectIdentifier = value
    }

    /**
     * @param value Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
     */
    @JvmName("mlcxxdlhsqbipjxw")
    public suspend fun publishOnImport(`value`: Output) {
        this.publishOnImport = value
    }

    /**
     * @param value Specifies whether the business name generation is to be enabled for this data source.
     */
    @JvmName("liydujqyqfwvoded")
    public suspend fun recommendation(`value`: Output) {
        this.recommendation = value
    }

    /**
     * @param value The schedule of the data source runs.
     */
    @JvmName("ewrqpxexfuqvnldg")
    public suspend fun schedule(`value`: Output) {
        this.schedule = value
    }

    /**
     * @param value The type of the data source.
     */
    @JvmName("vopkeyjrcdqmbwqg")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("galfelrnqvhbufsh")
    public suspend fun assetFormsInput(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assetFormsInput = mapped
    }

    /**
     * @param argument The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("hjhvkhdpkdwbeqvu")
    public suspend fun assetFormsInput(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            DataSourceFormInputArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.assetFormsInput = mapped
    }

    /**
     * @param argument The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("cwanscwkeutlkcej")
    public suspend fun assetFormsInput(vararg argument: suspend DataSourceFormInputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            DataSourceFormInputArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.assetFormsInput = mapped
    }

    /**
     * @param argument The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("tjjcfywltcvoywyv")
    public suspend fun assetFormsInput(argument: suspend DataSourceFormInputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(DataSourceFormInputArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.assetFormsInput = mapped
    }

    /**
     * @param values The metadata forms that are to be attached to the assets that this data source works with.
     */
    @JvmName("fkhflnmtghoobcuw")
    public suspend fun assetFormsInput(vararg values: DataSourceFormInputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.assetFormsInput = mapped
    }

    /**
     * @param value Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.
     */
    @JvmName("votonhxubqfpwuvb")
    public suspend fun configuration(`value`: Either?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.
     */
    @JvmName("aiwcrqxfnekvifva")
    public fun configuration(`value`: DataSourceConfigurationInput0PropertiesArgs) {
        val toBeMapped = Either.ofLeft<
            DataSourceConfigurationInput0PropertiesArgs,
            DataSourceConfigurationInput1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value Configuration of the data source. It can be set to either glueRunConfiguration or redshiftRunConfiguration.
     */
    @JvmName("jbxwqeoetfgfvgau")
    public fun configuration(`value`: DataSourceConfigurationInput1PropertiesArgs) {
        val toBeMapped = Either.ofRight<
            DataSourceConfigurationInput0PropertiesArgs,
            DataSourceConfigurationInput1PropertiesArgs,
            >(value)
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.configuration = mapped
    }

    /**
     * @param value The description of the data source.
     */
    @JvmName("prtrxqdcasgjpsxl")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value The ID of the Amazon DataZone domain where the data source is created.
     */
    @JvmName("teqymvsgqqoclthh")
    public suspend fun domainIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.domainIdentifier = mapped
    }

    /**
     * @param value Specifies whether the data source is enabled.
     */
    @JvmName("swbbjoqqtoggtrvq")
    public suspend fun enableSetting(`value`: DataSourceEnableSetting?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enableSetting = mapped
    }

    /**
     * @param value The unique identifier of the Amazon DataZone environment to which the data source publishes assets.
     */
    @JvmName("rqxveuddgahlcues")
    public suspend fun environmentIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.environmentIdentifier = mapped
    }

    /**
     * @param value The name of the data source.
     */
    @JvmName("cascfqdpgxdamrup")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The identifier of the Amazon DataZone project in which you want to add the data source.
     */
    @JvmName("qtkdwghgvamydeuw")
    public suspend fun projectIdentifier(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.projectIdentifier = mapped
    }

    /**
     * @param value Specifies whether the assets that this data source creates in the inventory are to be also automatically published to the catalog.
     */
    @JvmName("awbmwpyfrvbeeuso")
    public suspend fun publishOnImport(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.publishOnImport = mapped
    }

    /**
     * @param value Specifies whether the business name generation is to be enabled for this data source.
     */
    @JvmName("mypaqxmjdiesjtig")
    public suspend fun recommendation(`value`: DataSourceRecommendationConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.recommendation = mapped
    }

    /**
     * @param argument Specifies whether the business name generation is to be enabled for this data source.
     */
    @JvmName("vmynkrssrfrdyxwv")
    public suspend fun recommendation(argument: suspend DataSourceRecommendationConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceRecommendationConfigurationArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.recommendation = mapped
    }

    /**
     * @param value The schedule of the data source runs.
     */
    @JvmName("intsnasyavvrcycs")
    public suspend fun schedule(`value`: DataSourceScheduleConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.schedule = mapped
    }

    /**
     * @param argument The schedule of the data source runs.
     */
    @JvmName("speyfeaitkiyoipm")
    public suspend fun schedule(argument: suspend DataSourceScheduleConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = DataSourceScheduleConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.schedule = mapped
    }

    /**
     * @param value The type of the data source.
     */
    @JvmName("envegdahbmfwewcr")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): DataSourceArgs = DataSourceArgs(
        assetFormsInput = assetFormsInput,
        configuration = configuration,
        description = description,
        domainIdentifier = domainIdentifier,
        enableSetting = enableSetting,
        environmentIdentifier = environmentIdentifier,
        name = name,
        projectIdentifier = projectIdentifier,
        publishOnImport = publishOnImport,
        recommendation = recommendation,
        schedule = schedule,
        type = type,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy