@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:52.101Z") @Stability(value=Experimental) public interface EventInvokeConfigOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.lambda.*;
IDestination destination;
Duration duration;
EventInvokeConfigOptions eventInvokeConfigOptions = EventInvokeConfigOptions.builder()
.maxEventAge(duration)
.onFailure(destination)
.onSuccess(destination)
.retryAttempts(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
EventInvokeConfigOptions.Builder
A builder for
EventInvokeConfigOptions |
static class |
EventInvokeConfigOptions.Jsii$Proxy
An implementation for
EventInvokeConfigOptions |
| Modifier and Type | Method and Description |
|---|---|
static EventInvokeConfigOptions.Builder |
builder() |
default Duration |
getMaxEventAge()
(experimental) The maximum age of a request that Lambda sends to a function for processing.
|
default IDestination |
getOnFailure()
(experimental) The destination for failed invocations.
|
default IDestination |
getOnSuccess()
(experimental) The destination for successful invocations.
|
default Number |
getRetryAttempts()
(experimental) The maximum number of times to retry when the function returns an error.
|
@Stability(value=Experimental) @Nullable default Duration getMaxEventAge()
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
@Stability(value=Experimental) @Nullable default IDestination getOnFailure()
Default: - no destination
@Stability(value=Experimental) @Nullable default IDestination getOnSuccess()
Default: - no destination
@Stability(value=Experimental) @Nullable default Number getRetryAttempts()
Minimum: 0 Maximum: 2
Default: 2
@Stability(value=Experimental) static EventInvokeConfigOptions.Builder builder()
EventInvokeConfigOptions.Builder of EventInvokeConfigOptionsCopyright © 2022. All rights reserved.