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

com.pulumi.aws.fis.kotlin.inputs.ExperimentTemplateActionArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.fis.kotlin.inputs

import com.pulumi.aws.fis.inputs.ExperimentTemplateActionArgs.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.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property actionId ID of the action. To find out what actions are supported see [AWS FIS actions reference](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html).
 * @property description Description of the action.
 * @property name Friendly name of the action.
 * @property parameters Parameter(s) for the action, if applicable. See below.
 * @property startAfters Set of action names that must complete before this action can be executed.
 * @property target Action's target, if applicable. See below.
 */
public data class ExperimentTemplateActionArgs(
    public val actionId: Output,
    public val description: Output? = null,
    public val name: Output,
    public val parameters: Output>? = null,
    public val startAfters: Output>? = null,
    public val target: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.fis.inputs.ExperimentTemplateActionArgs =
        com.pulumi.aws.fis.inputs.ExperimentTemplateActionArgs.builder()
            .actionId(actionId.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .parameters(
                parameters?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .startAfters(startAfters?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .target(target?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}

/**
 * Builder for [ExperimentTemplateActionArgs].
 */
@PulumiTagMarker
public class ExperimentTemplateActionArgsBuilder internal constructor() {
    private var actionId: Output? = null

    private var description: Output? = null

    private var name: Output? = null

    private var parameters: Output>? = null

    private var startAfters: Output>? = null

    private var target: Output? = null

    /**
     * @param value ID of the action. To find out what actions are supported see [AWS FIS actions reference](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html).
     */
    @JvmName("ieylemxseatqndhp")
    public suspend fun actionId(`value`: Output) {
        this.actionId = value
    }

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

    /**
     * @param value Friendly name of the action.
     */
    @JvmName("msmsjvoowseqdnai")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("dusutnomyxpvpbgh")
    public suspend fun parameters(`value`: Output>) {
        this.parameters = value
    }

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

    /**
     * @param values Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("miyxihxwrllemcgk")
    public suspend fun parameters(values: List>) {
        this.parameters = Output.all(values)
    }

    /**
     * @param value Set of action names that must complete before this action can be executed.
     */
    @JvmName("bgnlklxihpcnnjmp")
    public suspend fun startAfters(`value`: Output>) {
        this.startAfters = value
    }

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

    /**
     * @param values Set of action names that must complete before this action can be executed.
     */
    @JvmName("mksapkiacrtwlaea")
    public suspend fun startAfters(values: List>) {
        this.startAfters = Output.all(values)
    }

    /**
     * @param value Action's target, if applicable. See below.
     */
    @JvmName("aswnakwcifxkcvhp")
    public suspend fun target(`value`: Output) {
        this.target = value
    }

    /**
     * @param value ID of the action. To find out what actions are supported see [AWS FIS actions reference](https://docs.aws.amazon.com/fis/latest/userguide/fis-actions-reference.html).
     */
    @JvmName("vlawkbbkkeoeerfh")
    public suspend fun actionId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.actionId = mapped
    }

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

    /**
     * @param value Friendly name of the action.
     */
    @JvmName("cpnalqfcrmoblqyi")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("jclvhinkldupjlhy")
    public suspend fun parameters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param argument Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("wbeqqwtgdlcxmfic")
    public suspend fun parameters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ExperimentTemplateActionParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("ouunqmrqbjnplacf")
    public suspend fun parameters(vararg argument: suspend ExperimentTemplateActionParameterArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ExperimentTemplateActionParameterArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param argument Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("lvsqfuixlyelgncb")
    public suspend fun parameters(argument: suspend ExperimentTemplateActionParameterArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ExperimentTemplateActionParameterArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.parameters = mapped
    }

    /**
     * @param values Parameter(s) for the action, if applicable. See below.
     */
    @JvmName("nnimmputxplcijwa")
    public suspend fun parameters(vararg values: ExperimentTemplateActionParameterArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.parameters = mapped
    }

    /**
     * @param value Set of action names that must complete before this action can be executed.
     */
    @JvmName("bxrbiawkvjjakato")
    public suspend fun startAfters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.startAfters = mapped
    }

    /**
     * @param values Set of action names that must complete before this action can be executed.
     */
    @JvmName("nvxvmvthcgwersya")
    public suspend fun startAfters(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.startAfters = mapped
    }

    /**
     * @param value Action's target, if applicable. See below.
     */
    @JvmName("qpnhxcnopjvyvxeo")
    public suspend fun target(`value`: ExperimentTemplateActionTargetArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.target = mapped
    }

    /**
     * @param argument Action's target, if applicable. See below.
     */
    @JvmName("mfkqfdoasqvjjcws")
    public suspend fun target(argument: suspend ExperimentTemplateActionTargetArgsBuilder.() -> Unit) {
        val toBeMapped = ExperimentTemplateActionTargetArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.target = mapped
    }

    internal fun build(): ExperimentTemplateActionArgs = ExperimentTemplateActionArgs(
        actionId = actionId ?: throw PulumiNullFieldException("actionId"),
        description = description,
        name = name ?: throw PulumiNullFieldException("name"),
        parameters = parameters,
        startAfters = startAfters,
        target = target,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy