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

com.pulumi.aws.appflow.kotlin.inputs.FlowSourceFlowConfigArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.appflow.kotlin.inputs

import com.pulumi.aws.appflow.inputs.FlowSourceFlowConfigArgs.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 apiVersion API version that the destination connector uses.
 * @property connectorProfileName Name of the connector profile. This name must be unique for each connector profile in the AWS account.
 * @property connectorType Type of connector, such as Salesforce, Amplitude, and so on. Valid values are `Salesforce`, `Singular`, `Slack`, `Redshift`, `S3`, `Marketo`, `Googleanalytics`, `Zendesk`, `Servicenow`, `Datadog`, `Trendmicro`, `Snowflake`, `Dynatrace`, `Infornexus`, `Amplitude`, `Veeva`, `EventBridge`, `LookoutMetrics`, `Upsolver`, `Honeycode`, `CustomerProfiles`, `SAPOData`, and `CustomConnector`.
 * @property incrementalPullConfig Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details.
 * @property sourceConnectorProperties Information that is required to query a particular source connector. See Source Connector Properties for details.
 */
public data class FlowSourceFlowConfigArgs(
    public val apiVersion: Output? = null,
    public val connectorProfileName: Output? = null,
    public val connectorType: Output,
    public val incrementalPullConfig: Output? = null,
    public val sourceConnectorProperties: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.appflow.inputs.FlowSourceFlowConfigArgs =
        com.pulumi.aws.appflow.inputs.FlowSourceFlowConfigArgs.builder()
            .apiVersion(apiVersion?.applyValue({ args0 -> args0 }))
            .connectorProfileName(connectorProfileName?.applyValue({ args0 -> args0 }))
            .connectorType(connectorType.applyValue({ args0 -> args0 }))
            .incrementalPullConfig(
                incrementalPullConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sourceConnectorProperties(
                sourceConnectorProperties.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FlowSourceFlowConfigArgs].
 */
@PulumiTagMarker
public class FlowSourceFlowConfigArgsBuilder internal constructor() {
    private var apiVersion: Output? = null

    private var connectorProfileName: Output? = null

    private var connectorType: Output? = null

    private var incrementalPullConfig: Output? = null

    private var sourceConnectorProperties: Output? =
        null

    /**
     * @param value API version that the destination connector uses.
     */
    @JvmName("clrmuyrpadicywcc")
    public suspend fun apiVersion(`value`: Output) {
        this.apiVersion = value
    }

    /**
     * @param value Name of the connector profile. This name must be unique for each connector profile in the AWS account.
     */
    @JvmName("eogfxovaegwocvki")
    public suspend fun connectorProfileName(`value`: Output) {
        this.connectorProfileName = value
    }

    /**
     * @param value Type of connector, such as Salesforce, Amplitude, and so on. Valid values are `Salesforce`, `Singular`, `Slack`, `Redshift`, `S3`, `Marketo`, `Googleanalytics`, `Zendesk`, `Servicenow`, `Datadog`, `Trendmicro`, `Snowflake`, `Dynatrace`, `Infornexus`, `Amplitude`, `Veeva`, `EventBridge`, `LookoutMetrics`, `Upsolver`, `Honeycode`, `CustomerProfiles`, `SAPOData`, and `CustomConnector`.
     */
    @JvmName("mtpbnmfxtmdbxejb")
    public suspend fun connectorType(`value`: Output) {
        this.connectorType = value
    }

    /**
     * @param value Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details.
     */
    @JvmName("cvcrpmdeeoeeelkp")
    public suspend fun incrementalPullConfig(`value`: Output) {
        this.incrementalPullConfig = value
    }

    /**
     * @param value Information that is required to query a particular source connector. See Source Connector Properties for details.
     */
    @JvmName("jcoiqrtsdiwsghbx")
    public suspend fun sourceConnectorProperties(`value`: Output) {
        this.sourceConnectorProperties = value
    }

    /**
     * @param value API version that the destination connector uses.
     */
    @JvmName("priqvqvrpqlqtdas")
    public suspend fun apiVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.apiVersion = mapped
    }

    /**
     * @param value Name of the connector profile. This name must be unique for each connector profile in the AWS account.
     */
    @JvmName("gbmqwgdnykfvtenw")
    public suspend fun connectorProfileName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.connectorProfileName = mapped
    }

    /**
     * @param value Type of connector, such as Salesforce, Amplitude, and so on. Valid values are `Salesforce`, `Singular`, `Slack`, `Redshift`, `S3`, `Marketo`, `Googleanalytics`, `Zendesk`, `Servicenow`, `Datadog`, `Trendmicro`, `Snowflake`, `Dynatrace`, `Infornexus`, `Amplitude`, `Veeva`, `EventBridge`, `LookoutMetrics`, `Upsolver`, `Honeycode`, `CustomerProfiles`, `SAPOData`, and `CustomConnector`.
     */
    @JvmName("vtslvhdevasvvitn")
    public suspend fun connectorType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.connectorType = mapped
    }

    /**
     * @param value Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details.
     */
    @JvmName("bwygpppvlkfffixf")
    public suspend fun incrementalPullConfig(`value`: FlowSourceFlowConfigIncrementalPullConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.incrementalPullConfig = mapped
    }

    /**
     * @param argument Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields specified in the configuration are used when querying for the incremental data pull. See Incremental Pull Config for more details.
     */
    @JvmName("bswmqfnrvykkarvj")
    public suspend fun incrementalPullConfig(argument: suspend FlowSourceFlowConfigIncrementalPullConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowSourceFlowConfigIncrementalPullConfigArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.incrementalPullConfig = mapped
    }

    /**
     * @param value Information that is required to query a particular source connector. See Source Connector Properties for details.
     */
    @JvmName("dkxdxifurppwldix")
    public suspend fun sourceConnectorProperties(`value`: FlowSourceFlowConfigSourceConnectorPropertiesArgs) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceConnectorProperties = mapped
    }

    /**
     * @param argument Information that is required to query a particular source connector. See Source Connector Properties for details.
     */
    @JvmName("brpkddexuxydxrgh")
    public suspend fun sourceConnectorProperties(argument: suspend FlowSourceFlowConfigSourceConnectorPropertiesArgsBuilder.() -> Unit) {
        val toBeMapped = FlowSourceFlowConfigSourceConnectorPropertiesArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.sourceConnectorProperties = mapped
    }

    internal fun build(): FlowSourceFlowConfigArgs = FlowSourceFlowConfigArgs(
        apiVersion = apiVersion,
        connectorProfileName = connectorProfileName,
        connectorType = connectorType ?: throw PulumiNullFieldException("connectorType"),
        incrementalPullConfig = incrementalPullConfig,
        sourceConnectorProperties = sourceConnectorProperties ?: throw
            PulumiNullFieldException("sourceConnectorProperties"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy