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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forEventInvokeConfigOptions
static final class
An implementation forEventInvokeConfigOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Duration
The maximum age of a request that Lambda sends to a function for processing.default IDestination
The destination for failed invocations.default IDestination
The destination for successful invocations.default Number
The 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.Builder
ofEventInvokeConfigOptions
-