Class LambdaDestinationOptions.Builder

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

@Stability(Stable) public static final class LambdaDestinationOptions.Builder extends Object implements software.amazon.jsii.Builder<LambdaDestinationOptions>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • responseOnly

      @Stability(Stable) public LambdaDestinationOptions.Builder responseOnly(Boolean responseOnly)
      Parameters:
      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.

      Returns:
      this
    • build

      @Stability(Stable) public LambdaDestinationOptions build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<LambdaDestinationOptions>
      Returns:
      a new instance of LambdaDestinationOptions
      Throws:
      NullPointerException - if any required attribute was not provided