Class LambdaInvokeFunction

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

@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)", date="2024-09-24T10:56:41.803Z") @Stability(Experimental) public class LambdaInvokeFunction extends AwsApiCall
(experimental) An AWS Lambda Invoke function API call.

Use this instead 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.alpha.*;
 import software.amazon.awscdk.services.logs.*;
 LambdaInvokeFunction lambdaInvokeFunction = LambdaInvokeFunction.Builder.create(this, "MyLambdaInvokeFunction")
         .functionName("functionName")
         // the properties below are optional
         .invocationType(InvocationType.EVENT)
         .logRetention(RetentionDays.ONE_DAY)
         .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.