Enum LambdaFunctionInvocationType
java.lang.Object
java.lang.Enum<LambdaFunctionInvocationType>
software.amazon.awscdk.services.pipes.targets.alpha.LambdaFunctionInvocationType
- All Implemented Interfaces:
Serializable
,Comparable<LambdaFunctionInvocationType>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-10-31T19:13:08.356Z")
@Stability(Experimental)
public enum LambdaFunctionInvocationType
extends Enum<LambdaFunctionInvocationType>
(experimental) InvocationType for invoking the Lambda Function.
Example:
Queue sourceQueue; IFunction targetFunction; LambdaFunction pipeTarget = LambdaFunction.Builder.create(targetFunction) .invocationType(LambdaFunctionInvocationType.FIRE_AND_FORGET) .build(); Pipe pipe = Pipe.Builder.create(this, "Pipe") .source(new SqsSource(sourceQueue)) .target(pipeTarget) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Invoke Lambda Function asynchronously (Invoke
).(experimental) Invoke Lambda Function synchronously (Invoke
) and wait for the response. -
Method Summary
Modifier and TypeMethodDescriptionstatic LambdaFunctionInvocationType
Returns the enum constant of this type with the specified name.static LambdaFunctionInvocationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
FIRE_AND_FORGET
(experimental) Invoke Lambda Function asynchronously (Invoke
).InvocationType
is set toEvent
onInvoke
, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details. -
REQUEST_RESPONSE
(experimental) Invoke Lambda Function synchronously (Invoke
) and wait for the response.InvocationType
is set toRequestResponse
onInvoke
, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-