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:
  • Enum Constant Details

    • FIRE_AND_FORGET

      @Stability(Experimental) public static final LambdaFunctionInvocationType FIRE_AND_FORGET
      (experimental) Invoke Lambda Function asynchronously (Invoke).

      InvocationType is set to Event on Invoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.

    • REQUEST_RESPONSE

      @Stability(Experimental) public static final LambdaFunctionInvocationType REQUEST_RESPONSE
      (experimental) Invoke Lambda Function synchronously (Invoke) and wait for the response.

      InvocationType is set to RequestResponse on Invoke, see https://docs.aws.amazon.com/lambda/latest/api/API_Invoke.html for more details.

  • Method Details

    • values

      public static LambdaFunctionInvocationType[] 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

      public static LambdaFunctionInvocationType valueOf(String name)
      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 name
      NullPointerException - if the argument is null