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

com.pulumi.awsnative.greengrassv2.kotlin.outputs.ComponentVersionLambdaFunctionRecipeSource.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.greengrassv2.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map

/**
 *
 * @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 ComponentVersionLambdaFunctionRecipeSource(
    public val componentDependencies: Map? =
        null,
    public val componentLambdaParameters: ComponentVersionLambdaExecutionParameters? = null,
    public val componentName: String? = null,
    public val componentPlatforms: List? = null,
    public val componentVersion: String? = null,
    public val lambdaArn: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.greengrassv2.outputs.ComponentVersionLambdaFunctionRecipeSource): ComponentVersionLambdaFunctionRecipeSource = ComponentVersionLambdaFunctionRecipeSource(
            componentDependencies = javaType.componentDependencies().map({ args0 ->
                args0.key.to(
                    args0.value.let({ args0 ->
                        com.pulumi.awsnative.greengrassv2.kotlin.outputs.ComponentVersionComponentDependencyRequirement.Companion.toKotlin(args0)
                    }),
                )
            }).toMap(),
            componentLambdaParameters = javaType.componentLambdaParameters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.greengrassv2.kotlin.outputs.ComponentVersionLambdaExecutionParameters.Companion.toKotlin(args0)
                })
            }).orElse(null),
            componentName = javaType.componentName().map({ args0 -> args0 }).orElse(null),
            componentPlatforms = javaType.componentPlatforms().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.greengrassv2.kotlin.outputs.ComponentVersionComponentPlatform.Companion.toKotlin(args0)
                })
            }),
            componentVersion = javaType.componentVersion().map({ args0 -> args0 }).orElse(null),
            lambdaArn = javaType.lambdaArn().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy