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

com.pulumi.awsnative.iotanalytics.kotlin.inputs.PipelineLambdaArgs.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.iotanalytics.kotlin.inputs

import com.pulumi.awsnative.iotanalytics.inputs.PipelineLambdaArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property batchSize The number of messages passed to the Lambda function for processing.
 * The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
 * @property lambdaName The name of the Lambda function that is run on the message.
 * @property name The name of the 'lambda' activity.
 * @property next The next activity in the pipeline.
 */
public data class PipelineLambdaArgs(
    public val batchSize: Output,
    public val lambdaName: Output,
    public val name: Output,
    public val next: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.iotanalytics.inputs.PipelineLambdaArgs =
        com.pulumi.awsnative.iotanalytics.inputs.PipelineLambdaArgs.builder()
            .batchSize(batchSize.applyValue({ args0 -> args0 }))
            .lambdaName(lambdaName.applyValue({ args0 -> args0 }))
            .name(name.applyValue({ args0 -> args0 }))
            .next(next?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [PipelineLambdaArgs].
 */
@PulumiTagMarker
public class PipelineLambdaArgsBuilder internal constructor() {
    private var batchSize: Output? = null

    private var lambdaName: Output? = null

    private var name: Output? = null

    private var next: Output? = null

    /**
     * @param value The number of messages passed to the Lambda function for processing.
     * The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
     */
    @JvmName("cbqagncqyvigevjv")
    public suspend fun batchSize(`value`: Output) {
        this.batchSize = value
    }

    /**
     * @param value The name of the Lambda function that is run on the message.
     */
    @JvmName("arceowfahxhctjrl")
    public suspend fun lambdaName(`value`: Output) {
        this.lambdaName = value
    }

    /**
     * @param value The name of the 'lambda' activity.
     */
    @JvmName("dlewhfigklxrstmi")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The next activity in the pipeline.
     */
    @JvmName("vptqbrxoqyjdtijk")
    public suspend fun next(`value`: Output) {
        this.next = value
    }

    /**
     * @param value The number of messages passed to the Lambda function for processing.
     * The AWS Lambda function must be able to process all of these messages within five minutes, which is the maximum timeout duration for Lambda functions.
     */
    @JvmName("hxsxblgxepwuolmb")
    public suspend fun batchSize(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.batchSize = mapped
    }

    /**
     * @param value The name of the Lambda function that is run on the message.
     */
    @JvmName("kjfjipoikwdjywvp")
    public suspend fun lambdaName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.lambdaName = mapped
    }

    /**
     * @param value The name of the 'lambda' activity.
     */
    @JvmName("wpyhfrmmkyrvleks")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The next activity in the pipeline.
     */
    @JvmName("ftmhpslwvadwncmx")
    public suspend fun next(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.next = mapped
    }

    internal fun build(): PipelineLambdaArgs = PipelineLambdaArgs(
        batchSize = batchSize ?: throw PulumiNullFieldException("batchSize"),
        lambdaName = lambdaName ?: throw PulumiNullFieldException("lambdaName"),
        name = name ?: throw PulumiNullFieldException("name"),
        next = next,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy