@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-02T20:25:31.467Z") public class EventInvokeConfig extends Resource
By default, Lambda retries an asynchronous invocation twice if the function returns an error. It retains events in a queue for up to six hours. When an event fails all processing attempts or stays in the asynchronous invocation queue for too long, Lambda discards it.
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; Function function_; EventInvokeConfig eventInvokeConfig = EventInvokeConfig.Builder.create(this, "MyEventInvokeConfig") .function(function_) // the properties below are optional .maxEventAge(Duration.minutes(30)) .onFailure(destination) .onSuccess(destination) .qualifier("qualifier") .retryAttempts(123) .build();
Modifier and Type | Class and Description |
---|---|
static class |
EventInvokeConfig.Builder
A fluent builder for
EventInvokeConfig . |
IResource.Jsii$Default
Modifier | Constructor and Description |
---|---|
protected |
EventInvokeConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
EventInvokeConfig(software.amazon.jsii.JsiiObjectRef objRef) |
|
EventInvokeConfig(software.constructs.Construct scope,
java.lang.String id,
EventInvokeConfigProps props) |
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNode
protected EventInvokeConfig(software.amazon.jsii.JsiiObjectRef objRef)
protected EventInvokeConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public EventInvokeConfig(software.constructs.Construct scope, java.lang.String id, EventInvokeConfigProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.