Class Lambda.Builder

java.lang.Object
software.amazon.awscdk.services.ses.actions.Lambda.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<Lambda>
Enclosing class:
Lambda

@Stability(Stable) public static final class Lambda.Builder extends Object implements software.amazon.jsii.Builder<Lambda>
A fluent builder for Lambda.
  • Method Details

    • create

      @Stability(Stable) public static Lambda.Builder create()
      Returns:
      a new instance of Lambda.Builder.
    • function

      @Stability(Stable) public Lambda.Builder function(IFunction function)
      The Lambda function to invoke.

      Parameters:
      function - The Lambda function to invoke. This parameter is required.
      Returns:
      this
    • invocationType

      @Stability(Stable) public Lambda.Builder invocationType(LambdaInvocationType invocationType)
      The invocation type of the Lambda function.

      Default: Event

      Parameters:
      invocationType - The invocation type of the Lambda function. This parameter is required.
      Returns:
      this
    • topic

      @Stability(Stable) public Lambda.Builder topic(ITopic topic)
      The SNS topic to notify when the Lambda action is taken.

      Default: no notification

      Parameters:
      topic - The SNS topic to notify when the Lambda action is taken. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public Lambda build()
      Specified by:
      build in interface software.amazon.jsii.Builder<Lambda>
      Returns:
      a newly built instance of Lambda.