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

com.pulumi.awsnative.greengrassv2.kotlin.inputs.ComponentVersionLambdaFunctionRecipeSourceArgs.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.greengrassv2.kotlin.inputs

import com.pulumi.awsnative.greengrassv2.inputs.ComponentVersionLambdaFunctionRecipeSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 *
 * @property componentDependencies The component versions on which this Lambda function component depends.
 * @property componentLambdaParameters The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
 * @property componentName The name of the component.
 * Defaults to the name of the Lambda function.
 * @property componentPlatforms The platforms that the component version supports.
 * @property componentVersion The version of the component.
 * Defaults to the version of the Lambda function as a semantic version. For example, if your function version is `3` , the component version becomes `3.0.0` .
 * @property lambdaArn The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like `$LATEST` .
 */
public data class ComponentVersionLambdaFunctionRecipeSourceArgs(
    public val componentDependencies: Output>? = null,
    public val componentLambdaParameters: Output? =
        null,
    public val componentName: Output? = null,
    public val componentPlatforms: Output>? = null,
    public val componentVersion: Output? = null,
    public val lambdaArn: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.greengrassv2.inputs.ComponentVersionLambdaFunctionRecipeSourceArgs =
        com.pulumi.awsnative.greengrassv2.inputs.ComponentVersionLambdaFunctionRecipeSourceArgs.builder()
            .componentDependencies(
                componentDependencies?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value.let({ args0 -> args0.toJava() }))
                    }).toMap()
                }),
            )
            .componentLambdaParameters(
                componentLambdaParameters?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .componentName(componentName?.applyValue({ args0 -> args0 }))
            .componentPlatforms(
                componentPlatforms?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 -> args0.toJava() })
                    })
                }),
            )
            .componentVersion(componentVersion?.applyValue({ args0 -> args0 }))
            .lambdaArn(lambdaArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ComponentVersionLambdaFunctionRecipeSourceArgs].
 */
@PulumiTagMarker
public class ComponentVersionLambdaFunctionRecipeSourceArgsBuilder internal constructor() {
    private var componentDependencies:
        Output>? = null

    private var componentLambdaParameters: Output? =
        null

    private var componentName: Output? = null

    private var componentPlatforms: Output>? = null

    private var componentVersion: Output? = null

    private var lambdaArn: Output? = null

    /**
     * @param value The component versions on which this Lambda function component depends.
     */
    @JvmName("jlxlvgxrqyuyqbxc")
    public suspend fun componentDependencies(`value`: Output>) {
        this.componentDependencies = value
    }

    /**
     * @param value The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
     */
    @JvmName("xoqybqjfrppqdall")
    public suspend fun componentLambdaParameters(`value`: Output) {
        this.componentLambdaParameters = value
    }

    /**
     * @param value The name of the component.
     * Defaults to the name of the Lambda function.
     */
    @JvmName("jvpbgacrcyxtbqpd")
    public suspend fun componentName(`value`: Output) {
        this.componentName = value
    }

    /**
     * @param value The platforms that the component version supports.
     */
    @JvmName("ftifnobpeojtallk")
    public suspend fun componentPlatforms(`value`: Output>) {
        this.componentPlatforms = value
    }

    @JvmName("hbxjgosgwhfsuvrp")
    public suspend fun componentPlatforms(vararg values: Output) {
        this.componentPlatforms = Output.all(values.asList())
    }

    /**
     * @param values The platforms that the component version supports.
     */
    @JvmName("ynvdhtriqawaufas")
    public suspend fun componentPlatforms(values: List>) {
        this.componentPlatforms = Output.all(values)
    }

    /**
     * @param value The version of the component.
     * Defaults to the version of the Lambda function as a semantic version. For example, if your function version is `3` , the component version becomes `3.0.0` .
     */
    @JvmName("ceoihnukgkmrvehw")
    public suspend fun componentVersion(`value`: Output) {
        this.componentVersion = value
    }

    /**
     * @param value The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like `$LATEST` .
     */
    @JvmName("hbtwgihllryjgyes")
    public suspend fun lambdaArn(`value`: Output) {
        this.lambdaArn = value
    }

    /**
     * @param value The component versions on which this Lambda function component depends.
     */
    @JvmName("rtdrnpavrfsxjqlb")
    public suspend fun componentDependencies(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentDependencies = mapped
    }

    /**
     * @param argument The component versions on which this Lambda function component depends.
     */
    @JvmName("njofviqjddxiwedh")
    public suspend fun componentDependencies(vararg argument: Pair Unit>) {
        val toBeMapped = argument.toList().map { (left, right) ->
            left to
                ComponentVersionComponentDependencyRequirementArgsBuilder().applySuspend { right() }.build()
        }.toMap()
        val mapped = of(toBeMapped)
        this.componentDependencies = mapped
    }

    /**
     * @param values The component versions on which this Lambda function component depends.
     */
    @JvmName("soqdfcipowcqkqdj")
    public fun componentDependencies(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentDependencies = mapped
    }

    /**
     * @param value The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
     */
    @JvmName("gtmhynoahdbsqdcd")
    public suspend fun componentLambdaParameters(`value`: ComponentVersionLambdaExecutionParametersArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentLambdaParameters = mapped
    }

    /**
     * @param argument The system and runtime parameters for the Lambda function as it runs on the AWS IoT Greengrass core device.
     */
    @JvmName("inserwdewsqlfbiq")
    public suspend fun componentLambdaParameters(argument: suspend ComponentVersionLambdaExecutionParametersArgsBuilder.() -> Unit) {
        val toBeMapped = ComponentVersionLambdaExecutionParametersArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.componentLambdaParameters = mapped
    }

    /**
     * @param value The name of the component.
     * Defaults to the name of the Lambda function.
     */
    @JvmName("uoybwoqaoebyawrg")
    public suspend fun componentName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentName = mapped
    }

    /**
     * @param value The platforms that the component version supports.
     */
    @JvmName("pflugbekpdxkppmy")
    public suspend fun componentPlatforms(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentPlatforms = mapped
    }

    /**
     * @param argument The platforms that the component version supports.
     */
    @JvmName("sbeicomxbakqxeuc")
    public suspend fun componentPlatforms(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            ComponentVersionComponentPlatformArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.componentPlatforms = mapped
    }

    /**
     * @param argument The platforms that the component version supports.
     */
    @JvmName("hqyqvvnacehomvjb")
    public suspend fun componentPlatforms(vararg argument: suspend ComponentVersionComponentPlatformArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            ComponentVersionComponentPlatformArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.componentPlatforms = mapped
    }

    /**
     * @param argument The platforms that the component version supports.
     */
    @JvmName("hmcyydrwgflynksy")
    public suspend fun componentPlatforms(argument: suspend ComponentVersionComponentPlatformArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            ComponentVersionComponentPlatformArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.componentPlatforms = mapped
    }

    /**
     * @param values The platforms that the component version supports.
     */
    @JvmName("thvkbcjsottbehva")
    public suspend fun componentPlatforms(vararg values: ComponentVersionComponentPlatformArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.componentPlatforms = mapped
    }

    /**
     * @param value The version of the component.
     * Defaults to the version of the Lambda function as a semantic version. For example, if your function version is `3` , the component version becomes `3.0.0` .
     */
    @JvmName("sdrxjahyrmyujqmy")
    public suspend fun componentVersion(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.componentVersion = mapped
    }

    /**
     * @param value The ARN of the Lambda function. The ARN must include the version of the function to import. You can't use version aliases like `$LATEST` .
     */
    @JvmName("udkmafydsnygssmi")
    public suspend fun lambdaArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.lambdaArn = mapped
    }

    internal fun build(): ComponentVersionLambdaFunctionRecipeSourceArgs =
        ComponentVersionLambdaFunctionRecipeSourceArgs(
            componentDependencies = componentDependencies,
            componentLambdaParameters = componentLambdaParameters,
            componentName = componentName,
            componentPlatforms = componentPlatforms,
            componentVersion = componentVersion,
            lambdaArn = lambdaArn,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy