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

com.pulumi.awsnative.imagebuilder.kotlin.inputs.ImagePipelineWorkflowConfigurationArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.imagebuilder.kotlin.inputs

import com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineWorkflowConfigurationArgs.builder
import com.pulumi.awsnative.imagebuilder.kotlin.enums.ImagePipelineWorkflowConfigurationOnFailure
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

/**
 * The workflow configuration of the image
 * @property onFailure Define execution decision in case of workflow failure
 * @property parallelGroup The parallel group name
 * @property parameters The parameters associated with the workflow
 * @property workflowArn The Amazon Resource Name (ARN) of the workflow
 */
public data class ImagePipelineWorkflowConfigurationArgs(
    public val onFailure: Output? = null,
    public val parallelGroup: Output? = null,
    public val parameters: Output>? = null,
    public val workflowArn: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineWorkflowConfigurationArgs =
        com.pulumi.awsnative.imagebuilder.inputs.ImagePipelineWorkflowConfigurationArgs.builder()
            .onFailure(onFailure?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .parallelGroup(parallelGroup?.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .workflowArn(workflowArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ImagePipelineWorkflowConfigurationArgs].
 */
@PulumiTagMarker
public class ImagePipelineWorkflowConfigurationArgsBuilder internal constructor() {
    private var onFailure: Output? = null

    private var parallelGroup: Output? = null

    private var parameters: Output>? = null

    private var workflowArn: Output? = null

    /**
     * @param value Define execution decision in case of workflow failure
     */
    @JvmName("naouuuhtyrbtudkg")
    public suspend fun onFailure(`value`: Output) {
        this.onFailure = value
    }

    /**
     * @param value The parallel group name
     */
    @JvmName("ogxsoefgklfnhpuw")
    public suspend fun parallelGroup(`value`: Output) {
        this.parallelGroup = value
    }

    /**
     * @param value The parameters associated with the workflow
     */
    @JvmName("samjycsawrwevmvg")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values The parameters associated with the workflow
     */
    @JvmName("lylrxucvhoavwjyg")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the workflow
     */
    @JvmName("piuyngbhmkrmfuva")
    public suspend fun workflowArn(`value`: Output) {
        this.workflowArn = value
    }

    /**
     * @param value Define execution decision in case of workflow failure
     */
    @JvmName("jlqvxdpnbnccokju")
    public suspend fun onFailure(`value`: ImagePipelineWorkflowConfigurationOnFailure?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.onFailure = mapped
    }

    /**
     * @param value The parallel group name
     */
    @JvmName("ncxeekyxewikxhee")
    public suspend fun parallelGroup(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parallelGroup = mapped
    }

    /**
     * @param value The parameters associated with the workflow
     */
    @JvmName("wsognmxaedcbouid")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument The parameters associated with the workflow
     */
    @JvmName("qhrgdflilwembatv")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ImagePipelineWorkflowParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The parameters associated with the workflow
     */
    @JvmName("gmymevpkeqnbbguk")
    public suspend fun parameters(vararg argument: suspend ImagePipelineWorkflowParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ImagePipelineWorkflowParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument The parameters associated with the workflow
     */
    @JvmName("soxnkumjqsonowdu")
    public suspend fun parameters(argument: suspend ImagePipelineWorkflowParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ImagePipelineWorkflowParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values The parameters associated with the workflow
     */
    @JvmName("dohwdsydfyjjtgws")
    public suspend fun parameters(vararg values: ImagePipelineWorkflowParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value The Amazon Resource Name (ARN) of the workflow
     */
    @JvmName("yvgfqojajxksncck")
    public suspend fun workflowArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.workflowArn = mapped
    }

    internal fun build(): ImagePipelineWorkflowConfigurationArgs =
        ImagePipelineWorkflowConfigurationArgs(
            onFailure = onFailure,
            parallelGroup = parallelGroup,
            parameters = parameters,
            workflowArn = workflowArn,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy