com.pulumi.awsnative.pipes.kotlin.outputs.PipeTargetLambdaFunctionParameters.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.pipes.kotlin.outputs
import com.pulumi.awsnative.pipes.kotlin.enums.PipeTargetInvocationType
import kotlin.Suppress
/**
*
* @property invocationType Specify whether to invoke the function synchronously or asynchronously.
* - `REQUEST_RESPONSE` (default) - Invoke synchronously. This corresponds to the `RequestResponse` option in the `InvocationType` parameter for the Lambda [Invoke](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax) API.
* - `FIRE_AND_FORGET` - Invoke asynchronously. This corresponds to the `Event` option in the `InvocationType` parameter for the Lambda [Invoke](https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html#API_Invoke_RequestSyntax) API.
* For more information, see [Invocation types](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html#pipes-invocation) in the *Amazon EventBridge User Guide* .
*/
public data class PipeTargetLambdaFunctionParameters(
public val invocationType: PipeTargetInvocationType? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeTargetLambdaFunctionParameters): PipeTargetLambdaFunctionParameters = PipeTargetLambdaFunctionParameters(
invocationType = javaType.invocationType().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.pipes.kotlin.enums.PipeTargetInvocationType.Companion.toKotlin(args0)
})
}).orElse(null),
)
}
}