Interface EventInvokeConfigOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Subinterfaces:
AliasOptions, AliasProps, DockerImageFunctionProps, EdgeFunctionProps, EventInvokeConfigProps, FunctionOptions, FunctionProps, GoFunctionProps, NodejsFunctionProps, PythonFunctionProps, SingletonFunctionProps, TriggerFunctionProps, VersionOptions, VersionProps
All Known Implementing Classes:
AliasOptions.Jsii$Proxy, AliasProps.Jsii$Proxy, DockerImageFunctionProps.Jsii$Proxy, EdgeFunctionProps.Jsii$Proxy, EventInvokeConfigOptions.Jsii$Proxy, EventInvokeConfigProps.Jsii$Proxy, FunctionOptions.Jsii$Proxy, FunctionProps.Jsii$Proxy, GoFunctionProps.Jsii$Proxy, NodejsFunctionProps.Jsii$Proxy, PythonFunctionProps.Jsii$Proxy, SingletonFunctionProps.Jsii$Proxy, TriggerFunctionProps.Jsii$Proxy, VersionOptions.Jsii$Proxy, VersionProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-06T23:25:12.132Z") @Stability(Stable) public interface EventInvokeConfigOptions extends software.amazon.jsii.JsiiSerializable
Options to add an EventInvokeConfig to a 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.*;
 import software.amazon.awscdk.services.lambda.*;
 IDestination destination;
 EventInvokeConfigOptions eventInvokeConfigOptions = EventInvokeConfigOptions.builder()
         .maxEventAge(Duration.minutes(30))
         .onFailure(destination)
         .onSuccess(destination)
         .retryAttempts(123)
         .build();
 
  • Method Details

    • getMaxEventAge

      @Stability(Stable) @Nullable default Duration getMaxEventAge()
      The maximum age of a request that Lambda sends to a function for processing.

      Minimum: 60 seconds Maximum: 6 hours

      Default: Duration.hours(6)

    • getOnFailure

      @Stability(Stable) @Nullable default IDestination getOnFailure()
      The destination for failed invocations.

      Default: - no destination

    • getOnSuccess

      @Stability(Stable) @Nullable default IDestination getOnSuccess()
      The destination for successful invocations.

      Default: - no destination

    • getRetryAttempts

      @Stability(Stable) @Nullable default Number getRetryAttempts()
      The maximum number of times to retry when the function returns an error.

      Minimum: 0 Maximum: 2

      Default: 2

    • builder

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