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

com.pulumi.awsnative.lambda.kotlin.inputs.VersionRuntimePolicyArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.lambda.kotlin.inputs

import com.pulumi.awsnative.lambda.inputs.VersionRuntimePolicyArgs.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

/**
 * Runtime Management Config of a function.
 * @property runtimeVersionArn The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
 * @property updateRuntimeOn The runtime update mode.
 */
public data class VersionRuntimePolicyArgs(
    public val runtimeVersionArn: Output? = null,
    public val updateRuntimeOn: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.lambda.inputs.VersionRuntimePolicyArgs =
        com.pulumi.awsnative.lambda.inputs.VersionRuntimePolicyArgs.builder()
            .runtimeVersionArn(runtimeVersionArn?.applyValue({ args0 -> args0 }))
            .updateRuntimeOn(updateRuntimeOn.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VersionRuntimePolicyArgs].
 */
@PulumiTagMarker
public class VersionRuntimePolicyArgsBuilder internal constructor() {
    private var runtimeVersionArn: Output? = null

    private var updateRuntimeOn: Output? = null

    /**
     * @param value The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
     */
    @JvmName("kpaoiftyfgpbqboy")
    public suspend fun runtimeVersionArn(`value`: Output) {
        this.runtimeVersionArn = value
    }

    /**
     * @param value The runtime update mode.
     */
    @JvmName("yldhmkukdohgyqcf")
    public suspend fun updateRuntimeOn(`value`: Output) {
        this.updateRuntimeOn = value
    }

    /**
     * @param value The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
     */
    @JvmName("cyfavsiqocgmhhpm")
    public suspend fun runtimeVersionArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.runtimeVersionArn = mapped
    }

    /**
     * @param value The runtime update mode.
     */
    @JvmName("vxvneppyhfkcbgoq")
    public suspend fun updateRuntimeOn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.updateRuntimeOn = mapped
    }

    internal fun build(): VersionRuntimePolicyArgs = VersionRuntimePolicyArgs(
        runtimeVersionArn = runtimeVersionArn,
        updateRuntimeOn = updateRuntimeOn ?: throw PulumiNullFieldException("updateRuntimeOn"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy