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

com.pulumi.aws.synthetics.kotlin.inputs.GetRuntimeVersionPlainArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.synthetics.kotlin.inputs

import com.pulumi.aws.synthetics.inputs.GetRuntimeVersionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getRuntimeVersion.
 * @property latest Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
 * @property prefix Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
 * The following arguments are optional:
 * @property version Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
 */
public data class GetRuntimeVersionPlainArgs(
    public val latest: Boolean? = null,
    public val prefix: String,
    public val version: String? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.synthetics.inputs.GetRuntimeVersionPlainArgs =
        com.pulumi.aws.synthetics.inputs.GetRuntimeVersionPlainArgs.builder()
            .latest(latest?.let({ args0 -> args0 }))
            .prefix(prefix.let({ args0 -> args0 }))
            .version(version?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetRuntimeVersionPlainArgs].
 */
@PulumiTagMarker
public class GetRuntimeVersionPlainArgsBuilder internal constructor() {
    private var latest: Boolean? = null

    private var prefix: String? = null

    private var version: String? = null

    /**
     * @param value Whether the latest version of the runtime should be fetched. Conflicts with `version`. Valid values: `true`.
     */
    @JvmName("putmgpfjpiybefuw")
    public suspend fun latest(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.latest = mapped
    }

    /**
     * @param value Name prefix of the runtime version (for example, `syn-nodejs-puppeteer`).
     * The following arguments are optional:
     */
    @JvmName("bnnyanadnhpkbpbg")
    public suspend fun prefix(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.prefix = mapped
    }

    /**
     * @param value Version of the runtime to be fetched (for example, `9.0`). Conflicts with `latest`.
     */
    @JvmName("fagdmkrhoanexwdw")
    public suspend fun version(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.version = mapped
    }

    internal fun build(): GetRuntimeVersionPlainArgs = GetRuntimeVersionPlainArgs(
        latest = latest,
        prefix = prefix ?: throw PulumiNullFieldException("prefix"),
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy