Class LambdaInvokeFunction

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.integtests.AwsApiCall
software.amazon.awscdk.integtests.LambdaInvokeFunction
All Implemented Interfaces:
IConstruct, IDependable, IAwsApiCall, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.739Z") @Stability(Experimental) public class LambdaInvokeFunction extends AwsApiCall
(experimental) An AWS Lambda Invoke function API call.

Use this istead of the generic AwsApiCall in order to invoke a lambda function. This will automatically create the correct permissions to invoke the function

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.integtests.*;
 LambdaInvokeFunction lambdaInvokeFunction = LambdaInvokeFunction.Builder.create(this, "MyLambdaInvokeFunction")
         .functionName("functionName")
         // the properties below are optional
         .invocationType(InvocationType.EVENT)
         .logType(LogType.NONE)
         .payload("payload")
         .build();
 
  • Constructor Details

    • LambdaInvokeFunction

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

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

      @Stability(Experimental) public LambdaInvokeFunction(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull LambdaInvokeFunctionProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.