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

com.pulumi.awsnative.appflow.kotlin.FlowArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.appflow.kotlin

import com.pulumi.awsnative.appflow.FlowArgs.builder
import com.pulumi.awsnative.appflow.kotlin.enums.FlowStatus
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowDestinationFlowConfigArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowDestinationFlowConfigArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowMetadataCatalogConfigArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowMetadataCatalogConfigArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowSourceFlowConfigArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowSourceFlowConfigArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowTaskArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowTaskArgsBuilder
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowTriggerConfigArgs
import com.pulumi.awsnative.appflow.kotlin.inputs.FlowTriggerConfigArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::AppFlow::Flow.
 * ## Example Usage
 * ### Example
 * No Java example available.
 * ### Example
 * No Java example available.
 * @property description Description of the flow.
 * @property destinationFlowConfigList List of Destination connectors of the flow.
 * @property flowName Name of the flow.
 * @property flowStatus Flow activation status for Scheduled- and Event-triggered flows
 * @property kmsArn The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
 * @property metadataCatalogConfig Configurations of metadata catalog of the flow.
 * @property sourceFlowConfig Configurations of Source connector of the flow.
 * @property tags List of Tags.
 * @property tasks List of tasks for the flow.
 * @property triggerConfig Trigger settings of the flow.
 */
public data class FlowArgs(
    public val description: Output? = null,
    public val destinationFlowConfigList: Output>? = null,
    public val flowName: Output? = null,
    public val flowStatus: Output? = null,
    public val kmsArn: Output? = null,
    public val metadataCatalogConfig: Output? = null,
    public val sourceFlowConfig: Output? = null,
    public val tags: Output>? = null,
    public val tasks: Output>? = null,
    public val triggerConfig: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.appflow.FlowArgs =
        com.pulumi.awsnative.appflow.FlowArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .destinationFlowConfigList(
                destinationFlowConfigList?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .flowName(flowName?.applyValue({ args0 -> args0 }))
            .flowStatus(flowStatus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .kmsArn(kmsArn?.applyValue({ args0 -> args0 }))
            .metadataCatalogConfig(
                metadataCatalogConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sourceFlowConfig(sourceFlowConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tasks(tasks?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .triggerConfig(triggerConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

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

    private var destinationFlowConfigList: Output>? = null

    private var flowName: Output? = null

    private var flowStatus: Output? = null

    private var kmsArn: Output? = null

    private var metadataCatalogConfig: Output? = null

    private var sourceFlowConfig: Output? = null

    private var tags: Output>? = null

    private var tasks: Output>? = null

    private var triggerConfig: Output? = null

    /**
     * @param value Description of the flow.
     */
    @JvmName("wjoagsiscchsgbhe")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value List of Destination connectors of the flow.
     */
    @JvmName("jcfgwyejdbkmisfl")
    public suspend fun destinationFlowConfigList(`value`: Output>) {
        this.destinationFlowConfigList = value
    }

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

    /**
     * @param values List of Destination connectors of the flow.
     */
    @JvmName("alavvwhetbrpnjuc")
    public suspend fun destinationFlowConfigList(values: List>) {
        this.destinationFlowConfigList = Output.all(values)
    }

    /**
     * @param value Name of the flow.
     */
    @JvmName("tafcgbcvhpvgrgbt")
    public suspend fun flowName(`value`: Output) {
        this.flowName = value
    }

    /**
     * @param value Flow activation status for Scheduled- and Event-triggered flows
     */
    @JvmName("ngjjiswhosqmmfms")
    public suspend fun flowStatus(`value`: Output) {
        this.flowStatus = value
    }

    /**
     * @param value The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
     */
    @JvmName("gilocuewbbioumcy")
    public suspend fun kmsArn(`value`: Output) {
        this.kmsArn = value
    }

    /**
     * @param value Configurations of metadata catalog of the flow.
     */
    @JvmName("rcyyubqgjxmejbdd")
    public suspend fun metadataCatalogConfig(`value`: Output) {
        this.metadataCatalogConfig = value
    }

    /**
     * @param value Configurations of Source connector of the flow.
     */
    @JvmName("ybqybyqneyfqqvla")
    public suspend fun sourceFlowConfig(`value`: Output) {
        this.sourceFlowConfig = value
    }

    /**
     * @param value List of Tags.
     */
    @JvmName("tgymirqbiwodgstb")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values List of Tags.
     */
    @JvmName("mdytnukqochmvddm")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value List of tasks for the flow.
     */
    @JvmName("acvrxgtledoywmwp")
    public suspend fun tasks(`value`: Output>) {
        this.tasks = value
    }

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

    /**
     * @param values List of tasks for the flow.
     */
    @JvmName("omryafgmtbhfloel")
    public suspend fun tasks(values: List>) {
        this.tasks = Output.all(values)
    }

    /**
     * @param value Trigger settings of the flow.
     */
    @JvmName("ufhdbwybeehyhwew")
    public suspend fun triggerConfig(`value`: Output) {
        this.triggerConfig = value
    }

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

    /**
     * @param value List of Destination connectors of the flow.
     */
    @JvmName("robpxujpbkiyslpm")
    public suspend fun destinationFlowConfigList(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationFlowConfigList = mapped
    }

    /**
     * @param argument List of Destination connectors of the flow.
     */
    @JvmName("subsiemcdwwtpkbp")
    public suspend fun destinationFlowConfigList(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowDestinationFlowConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationFlowConfigList = mapped
    }

    /**
     * @param argument List of Destination connectors of the flow.
     */
    @JvmName("ynhbbwbykgcgfvev")
    public suspend fun destinationFlowConfigList(vararg argument: suspend FlowDestinationFlowConfigArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowDestinationFlowConfigArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationFlowConfigList = mapped
    }

    /**
     * @param argument List of Destination connectors of the flow.
     */
    @JvmName("gurueuyowaxaegba")
    public suspend fun destinationFlowConfigList(argument: suspend FlowDestinationFlowConfigArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            FlowDestinationFlowConfigArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.destinationFlowConfigList = mapped
    }

    /**
     * @param values List of Destination connectors of the flow.
     */
    @JvmName("mebdmnjsskvvoxaq")
    public suspend fun destinationFlowConfigList(vararg values: FlowDestinationFlowConfigArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationFlowConfigList = mapped
    }

    /**
     * @param value Name of the flow.
     */
    @JvmName("ardxxqhoxokvunuw")
    public suspend fun flowName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowName = mapped
    }

    /**
     * @param value Flow activation status for Scheduled- and Event-triggered flows
     */
    @JvmName("ihmcguabenedffsa")
    public suspend fun flowStatus(`value`: FlowStatus?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowStatus = mapped
    }

    /**
     * @param value The ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
     */
    @JvmName("hodbnbtoaxjfajod")
    public suspend fun kmsArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.kmsArn = mapped
    }

    /**
     * @param value Configurations of metadata catalog of the flow.
     */
    @JvmName("rcglfnfxfiquwfyk")
    public suspend fun metadataCatalogConfig(`value`: FlowMetadataCatalogConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.metadataCatalogConfig = mapped
    }

    /**
     * @param argument Configurations of metadata catalog of the flow.
     */
    @JvmName("wryhyoxtmmviqtpy")
    public suspend fun metadataCatalogConfig(argument: suspend FlowMetadataCatalogConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowMetadataCatalogConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.metadataCatalogConfig = mapped
    }

    /**
     * @param value Configurations of Source connector of the flow.
     */
    @JvmName("vixkraknopykcled")
    public suspend fun sourceFlowConfig(`value`: FlowSourceFlowConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceFlowConfig = mapped
    }

    /**
     * @param argument Configurations of Source connector of the flow.
     */
    @JvmName("omrhbcogmhmxpydi")
    public suspend fun sourceFlowConfig(argument: suspend FlowSourceFlowConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowSourceFlowConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceFlowConfig = mapped
    }

    /**
     * @param value List of Tags.
     */
    @JvmName("xqilgvevcmnbfamm")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument List of Tags.
     */
    @JvmName("ghmmnxomhotxmecf")
    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 List of Tags.
     */
    @JvmName("agpgbjtnlbwkboxn")
    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 List of Tags.
     */
    @JvmName("xtgcdcutdtswrhew")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values List of Tags.
     */
    @JvmName("skgjxumqrkefhwab")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value List of tasks for the flow.
     */
    @JvmName("hpbgqohpesfrgxnh")
    public suspend fun tasks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tasks = mapped
    }

    /**
     * @param argument List of tasks for the flow.
     */
    @JvmName("hgjsfhrgffayhqlt")
    public suspend fun tasks(argument: List Unit>) {
        val toBeMapped = argument.toList().map { FlowTaskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tasks = mapped
    }

    /**
     * @param argument List of tasks for the flow.
     */
    @JvmName("cplppbrosanlnush")
    public suspend fun tasks(vararg argument: suspend FlowTaskArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { FlowTaskArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tasks = mapped
    }

    /**
     * @param argument List of tasks for the flow.
     */
    @JvmName("bjkmgouxwjtiwjpo")
    public suspend fun tasks(argument: suspend FlowTaskArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowTaskArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tasks = mapped
    }

    /**
     * @param values List of tasks for the flow.
     */
    @JvmName("lntxpubmjcdshvhe")
    public suspend fun tasks(vararg values: FlowTaskArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tasks = mapped
    }

    /**
     * @param value Trigger settings of the flow.
     */
    @JvmName("rjtmorhpqbaukiup")
    public suspend fun triggerConfig(`value`: FlowTriggerConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.triggerConfig = mapped
    }

    /**
     * @param argument Trigger settings of the flow.
     */
    @JvmName("kjlgguecihgcatwc")
    public suspend fun triggerConfig(argument: suspend FlowTriggerConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowTriggerConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.triggerConfig = mapped
    }

    internal fun build(): FlowArgs = FlowArgs(
        description = description,
        destinationFlowConfigList = destinationFlowConfigList,
        flowName = flowName,
        flowStatus = flowStatus,
        kmsArn = kmsArn,
        metadataCatalogConfig = metadataCatalogConfig,
        sourceFlowConfig = sourceFlowConfig,
        tags = tags,
        tasks = tasks,
        triggerConfig = triggerConfig,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy