Interface LambdaProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LambdaProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.960Z") @Stability(Stable) public interface LambdaProps extends software.amazon.jsii.JsiiSerializable
Construction properties for a Lambda action.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.lambda.*;
 import software.amazon.awscdk.services.ses.actions.*;
 import software.amazon.awscdk.services.sns.*;
 Function function_;
 Topic topic;
 LambdaProps lambdaProps = LambdaProps.builder()
         .function(function_)
         // the properties below are optional
         .invocationType(LambdaInvocationType.EVENT)
         .topic(topic)
         .build();
 
  • Method Details

    • getFunction

      @Stability(Stable) @NotNull IFunction getFunction()
      The Lambda function to invoke.
    • getInvocationType

      @Stability(Stable) @Nullable default LambdaInvocationType getInvocationType()
      The invocation type of the Lambda function.

      Default: Event

    • getTopic

      @Stability(Stable) @Nullable default ITopic getTopic()
      The SNS topic to notify when the Lambda action is taken.

      Default: no notification

    • builder

      @Stability(Stable) static LambdaProps.Builder builder()
      Returns:
      a LambdaProps.Builder of LambdaProps