Class LambdaDestination.Builder

java.lang.Object
software.amazon.awscdk.services.lambda.destinations.LambdaDestination.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<LambdaDestination>
Enclosing class:
LambdaDestination

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

    • create

      @Stability(Stable) public static LambdaDestination.Builder create(IFunction fn)
      Parameters:
      fn - This parameter is required.
      Returns:
      a new instance of LambdaDestination.Builder.
    • responseOnly

      @Stability(Stable) public LambdaDestination.Builder responseOnly(Boolean responseOnly)
      Whether the destination function receives only the responsePayload of the source function.

      When set to true and used as onSuccess destination, the destination function will be invoked with the payload returned by the source function.

      When set to true and used as onFailure destination, the destination function will be invoked with the error object returned by source function.

      See the README of this module to see a full explanation of this option.

      Default: false The destination function receives the full invocation record.

      Parameters:
      responseOnly - Whether the destination function receives only the responsePayload of the source function. This parameter is required.
      Returns:
      this
    • build

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