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

com.pulumi.awsnative.fis.kotlin.outputs.ExperimentTemplateAction.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.fis.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 * Specifies an action for the experiment template.
 * @property actionId The ID of the action.
 * @property description A description for the action.
 * @property parameters The parameters for the action, if applicable.
 * @property startAfter The name of the action that must be completed before the current action starts.
 * @property targets One or more targets for the action.
 */
public data class ExperimentTemplateAction(
    public val actionId: String,
    public val description: String? = null,
    public val parameters: Map? = null,
    public val startAfter: List? = null,
    public val targets: Map? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.fis.outputs.ExperimentTemplateAction): ExperimentTemplateAction = ExperimentTemplateAction(
            actionId = javaType.actionId(),
            description = javaType.description().map({ args0 -> args0 }).orElse(null),
            parameters = javaType.parameters().map({ args0 -> args0.key.to(args0.value) }).toMap(),
            startAfter = javaType.startAfter().map({ args0 -> args0 }),
            targets = javaType.targets().map({ args0 -> args0.key.to(args0.value) }).toMap(),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy