com.pulumi.aws.lambda.kotlin.inputs.FunctionSnapStartArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.lambda.kotlin.inputs
import com.pulumi.aws.lambda.inputs.FunctionSnapStartArgs.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 kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property applyOn Conditions where snap start is enabled. Valid values are `PublishedVersions`.
* @property optimizationStatus Optimization status of the snap start configuration. Valid values are `On` and `Off`.
*/
public data class FunctionSnapStartArgs(
public val applyOn: Output,
public val optimizationStatus: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.lambda.inputs.FunctionSnapStartArgs =
com.pulumi.aws.lambda.inputs.FunctionSnapStartArgs.builder()
.applyOn(applyOn.applyValue({ args0 -> args0 }))
.optimizationStatus(optimizationStatus?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionSnapStartArgs].
*/
@PulumiTagMarker
public class FunctionSnapStartArgsBuilder internal constructor() {
private var applyOn: Output? = null
private var optimizationStatus: Output? = null
/**
* @param value Conditions where snap start is enabled. Valid values are `PublishedVersions`.
*/
@JvmName("lnpjaeeaakhtccrt")
public suspend fun applyOn(`value`: Output) {
this.applyOn = value
}
/**
* @param value Optimization status of the snap start configuration. Valid values are `On` and `Off`.
*/
@JvmName("nvetreropfqqtpjj")
public suspend fun optimizationStatus(`value`: Output) {
this.optimizationStatus = value
}
/**
* @param value Conditions where snap start is enabled. Valid values are `PublishedVersions`.
*/
@JvmName("wyjitjtajyxlbnrd")
public suspend fun applyOn(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.applyOn = mapped
}
/**
* @param value Optimization status of the snap start configuration. Valid values are `On` and `Off`.
*/
@JvmName("pjmnwjrdyvpqspiu")
public suspend fun optimizationStatus(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.optimizationStatus = mapped
}
internal fun build(): FunctionSnapStartArgs = FunctionSnapStartArgs(
applyOn = applyOn ?: throw PulumiNullFieldException("applyOn"),
optimizationStatus = optimizationStatus,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy