
com.pulumi.awsnative.appsync.kotlin.inputs.FunctionConfigurationAppSyncRuntimeArgs.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.appsync.kotlin.inputs
import com.pulumi.awsnative.appsync.inputs.FunctionConfigurationAppSyncRuntimeArgs.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
/**
* Describes a runtime used by an AWS AppSync pipeline resolver or AWS AppSync function. Specifies the name and version of the runtime to use. Note that if a runtime is specified, code must also be specified.
* @property name The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
* @property runtimeVersion The version of the runtime to use. Currently, the only allowed version is 1.0.0.
*/
public data class FunctionConfigurationAppSyncRuntimeArgs(
public val name: Output,
public val runtimeVersion: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.appsync.inputs.FunctionConfigurationAppSyncRuntimeArgs = com.pulumi.awsnative.appsync.inputs.FunctionConfigurationAppSyncRuntimeArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.runtimeVersion(runtimeVersion.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [FunctionConfigurationAppSyncRuntimeArgs].
*/
@PulumiTagMarker
public class FunctionConfigurationAppSyncRuntimeArgsBuilder internal constructor() {
private var name: Output? = null
private var runtimeVersion: Output? = null
/**
* @param value The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
*/
@JvmName("xhffsysefxdjjhdc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The version of the runtime to use. Currently, the only allowed version is 1.0.0.
*/
@JvmName("kadyqmxjyxvqftoe")
public suspend fun runtimeVersion(`value`: Output) {
this.runtimeVersion = value
}
/**
* @param value The name of the runtime to use. Currently, the only allowed value is APPSYNC_JS.
*/
@JvmName("wjefkpjwecofnlkc")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The version of the runtime to use. Currently, the only allowed version is 1.0.0.
*/
@JvmName("cjkcypwbuqapavsw")
public suspend fun runtimeVersion(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.runtimeVersion = mapped
}
internal fun build(): FunctionConfigurationAppSyncRuntimeArgs =
FunctionConfigurationAppSyncRuntimeArgs(
name = name ?: throw PulumiNullFieldException("name"),
runtimeVersion = runtimeVersion ?: throw PulumiNullFieldException("runtimeVersion"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy