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

com.pulumi.aws.lambda.kotlin.inputs.GetLayerVersionPlainArgs.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.lambda.kotlin.inputs

import com.pulumi.aws.lambda.inputs.GetLayerVersionPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getLayerVersion.
 * @property compatibleArchitecture Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
 * @property compatibleRuntime Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
 * @property layerName Name of the lambda layer.
 * @property version Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
 */
public data class GetLayerVersionPlainArgs(
    public val compatibleArchitecture: String? = null,
    public val compatibleRuntime: String? = null,
    public val layerName: String,
    public val version: Int? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.lambda.inputs.GetLayerVersionPlainArgs =
        com.pulumi.aws.lambda.inputs.GetLayerVersionPlainArgs.builder()
            .compatibleArchitecture(compatibleArchitecture?.let({ args0 -> args0 }))
            .compatibleRuntime(compatibleRuntime?.let({ args0 -> args0 }))
            .layerName(layerName.let({ args0 -> args0 }))
            .version(version?.let({ args0 -> args0 })).build()
}

/**
 * Builder for [GetLayerVersionPlainArgs].
 */
@PulumiTagMarker
public class GetLayerVersionPlainArgsBuilder internal constructor() {
    private var compatibleArchitecture: String? = null

    private var compatibleRuntime: String? = null

    private var layerName: String? = null

    private var version: Int? = null

    /**
     * @param value Specific architecture the layer version could support. Conflicts with `version`. If specified, the latest available layer version supporting the provided architecture will be used.
     */
    @JvmName("eiuwleiklhyfihku")
    public suspend fun compatibleArchitecture(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.compatibleArchitecture = mapped
    }

    /**
     * @param value Specific runtime the layer version must support. Conflicts with `version`. If specified, the latest available layer version supporting the provided runtime will be used.
     */
    @JvmName("ydiqqojxkuvwegiy")
    public suspend fun compatibleRuntime(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.compatibleRuntime = mapped
    }

    /**
     * @param value Name of the lambda layer.
     */
    @JvmName("njsymoconbssqvqi")
    public suspend fun layerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.layerName = mapped
    }

    /**
     * @param value Specific layer version. Conflicts with `compatible_runtime` and `compatible_architecture`. If omitted, the latest available layer version will be used.
     */
    @JvmName("yjgrfpowiuevyarm")
    public suspend fun version(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.version = mapped
    }

    internal fun build(): GetLayerVersionPlainArgs = GetLayerVersionPlainArgs(
        compatibleArchitecture = compatibleArchitecture,
        compatibleRuntime = compatibleRuntime,
        layerName = layerName ?: throw PulumiNullFieldException("layerName"),
        version = version,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy