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

com.pulumi.awsnative.transfer.kotlin.WorkflowArgs.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.transfer.kotlin

import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
import com.pulumi.awsnative.transfer.WorkflowArgs.builder
import com.pulumi.awsnative.transfer.kotlin.inputs.WorkflowStepArgs
import com.pulumi.awsnative.transfer.kotlin.inputs.WorkflowStepArgsBuilder
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 Type definition for AWS::Transfer::Workflow
 * @property description A textual description for the workflow.
 * @property onExceptionSteps Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
 * @property steps Specifies the details for the steps that are in the specified workflow.
 * @property tags Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
 */
public data class WorkflowArgs(
    public val description: Output? = null,
    public val onExceptionSteps: Output>? = null,
    public val steps: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.transfer.WorkflowArgs =
        com.pulumi.awsnative.transfer.WorkflowArgs.builder()
            .description(description?.applyValue({ args0 -> args0 }))
            .onExceptionSteps(
                onExceptionSteps?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .steps(steps?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var onExceptionSteps: Output>? = null

    private var steps: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value A textual description for the workflow.
     */
    @JvmName("rcelrqsdfbmitthv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("wraaanvherovqppv")
    public suspend fun onExceptionSteps(`value`: Output>) {
        this.onExceptionSteps = value
    }

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

    /**
     * @param values Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("eubhaxbrqpoahqud")
    public suspend fun onExceptionSteps(values: List>) {
        this.onExceptionSteps = Output.all(values)
    }

    /**
     * @param value Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("xluuumyhxljnmamy")
    public suspend fun steps(`value`: Output>) {
        this.steps = value
    }

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

    /**
     * @param values Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("vsxrifwtiexasptx")
    public suspend fun steps(values: List>) {
        this.steps = Output.all(values)
    }

    /**
     * @param value Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("wprncspdnaolinnq")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("eekhguqucganaxhp")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value A textual description for the workflow.
     */
    @JvmName("gbgxropjpisftgra")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("enegjssiyxfhwgsa")
    public suspend fun onExceptionSteps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onExceptionSteps = mapped
    }

    /**
     * @param argument Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("jlbcpotvfdtiuhja")
    public suspend fun onExceptionSteps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.onExceptionSteps = mapped
    }

    /**
     * @param argument Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("nbawnqsblgsfluyr")
    public suspend fun onExceptionSteps(vararg argument: suspend WorkflowStepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkflowStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.onExceptionSteps = mapped
    }

    /**
     * @param argument Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("fkgufvyjgvbmlybi")
    public suspend fun onExceptionSteps(argument: suspend WorkflowStepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(WorkflowStepArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.onExceptionSteps = mapped
    }

    /**
     * @param values Specifies the steps (actions) to take if any errors are encountered during execution of the workflow.
     */
    @JvmName("ttimitddgbgfqbkh")
    public suspend fun onExceptionSteps(vararg values: WorkflowStepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.onExceptionSteps = mapped
    }

    /**
     * @param value Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("xjbtifpphrxiehwc")
    public suspend fun steps(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param argument Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("bduvflejgtokrpfo")
    public suspend fun steps(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            WorkflowStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("tyqmqqpxbfpbskat")
    public suspend fun steps(vararg argument: suspend WorkflowStepArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            WorkflowStepArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param argument Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("qgfsdacqcndpsapd")
    public suspend fun steps(argument: suspend WorkflowStepArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(WorkflowStepArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.steps = mapped
    }

    /**
     * @param values Specifies the details for the steps that are in the specified workflow.
     */
    @JvmName("gofsuwbcvrxocseo")
    public suspend fun steps(vararg values: WorkflowStepArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.steps = mapped
    }

    /**
     * @param value Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("ytodfdpyuvofdmao")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("jwtnrhqwhrwdntgf")
    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 Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("tytekknqbsiqchwf")
    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 Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("vhoydifwrpvwekfd")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Key-value pairs that can be used to group and search for workflows. Tags are metadata attached to workflows for any purpose.
     */
    @JvmName("kdqlgikvxeqqknxv")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): WorkflowArgs = WorkflowArgs(
        description = description,
        onExceptionSteps = onExceptionSteps,
        steps = steps,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy