
com.pulumi.awsnative.databrew.kotlin.inputs.RecipeActionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.databrew.kotlin.inputs
import com.pulumi.awsnative.databrew.inputs.RecipeActionArgs.builder
import com.pulumi.core.Either
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
*
* @property operation Step action operation
* @property parameters Contextual parameters for the transformation.
*/
public data class RecipeActionArgs(
public val operation: Output,
public val parameters: Output>>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.databrew.inputs.RecipeActionArgs =
com.pulumi.awsnative.databrew.inputs.RecipeActionArgs.builder()
.operation(operation.applyValue({ args0 -> args0 }))
.parameters(
parameters?.applyValue({ args0 ->
args0.transform({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}, { args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
})
}),
).build()
}
/**
* Builder for [RecipeActionArgs].
*/
@PulumiTagMarker
public class RecipeActionArgsBuilder internal constructor() {
private var operation: Output? = null
private var parameters: Output>>? = null
/**
* @param value Step action operation
*/
@JvmName("tnbcfrqxhyiamruc")
public suspend fun operation(`value`: Output) {
this.operation = value
}
/**
* @param value Contextual parameters for the transformation.
*/
@JvmName("mwontbkrephconls")
public suspend fun parameters(`value`: Output>>) {
this.parameters = value
}
/**
* @param value Step action operation
*/
@JvmName("rjqxtehrknpqkjgo")
public suspend fun operation(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.operation = mapped
}
/**
* @param value Contextual parameters for the transformation.
*/
@JvmName("hemcqouvwhleflbf")
public suspend fun parameters(`value`: Either>?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param value Contextual parameters for the transformation.
*/
@JvmName("dvfgnnibspupbnin")
public fun parameters(`value`: RecipeParametersArgs) {
val toBeMapped = Either.ofLeft>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
/**
* @param value Contextual parameters for the transformation.
*/
@JvmName("vfecequbrqcfcxlk")
public fun parameters(`value`: Map) {
val toBeMapped = Either.ofRight>(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.parameters = mapped
}
internal fun build(): RecipeActionArgs = RecipeActionArgs(
operation = operation ?: throw PulumiNullFieldException("operation"),
parameters = parameters,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy