java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IChainable, INextable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:25.528Z") @Stability(Stable) public class LambdaInvoke extends TaskStateBase
Invoke a Lambda function as a Task.

Example:

 Function fn;
 LambdaInvoke.Builder.create(this, "Invoke with empty object as payload")
         .lambdaFunction(fn)
         .payload(TaskInput.fromObject(Map.of()))
         .build();
 // use the output of fn as input
 // use the output of fn as input
 LambdaInvoke.Builder.create(this, "Invoke with payload field in the state input")
         .lambdaFunction(fn)
         .payload(TaskInput.fromJsonPathAt("$.Payload"))
         .build();
 

See Also:
  • Constructor Details

    • LambdaInvoke

      protected LambdaInvoke(software.amazon.jsii.JsiiObjectRef objRef)
    • LambdaInvoke

      protected LambdaInvoke(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • LambdaInvoke

      @Stability(Stable) public LambdaInvoke(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaInvokeProps props)
      Parameters:
      scope - This parameter is required.
      id - Descriptive identifier for this chainable. This parameter is required.
      props - This parameter is required.
  • Method Details