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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.726Z")
@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.services.lambda.*;
import software.amazon.awscdk.core.*;
IDestination destination;
EventInvokeConfigOptions eventInvokeConfigOptions = EventInvokeConfigOptions.builder()
.maxEventAge(Duration.minutes(30))
.onFailure(destination)
.onSuccess(destination)
.retryAttempts(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEventInvokeConfigOptionsstatic final classAn implementation forEventInvokeConfigOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default DurationThe maximum age of a request that Lambda sends to a function for processing.default IDestinationThe destination for failed invocations.default IDestinationThe destination for successful invocations.default NumberThe maximum number of times to retry when the function returns an error.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
The destination for failed invocations.Default: - no destination
-
getOnSuccess
The destination for successful invocations.Default: - no destination
-
getRetryAttempts
The maximum number of times to retry when the function returns an error.Minimum: 0 Maximum: 2
Default: 2
-
builder
- Returns:
- a
EventInvokeConfigOptions.BuilderofEventInvokeConfigOptions
-