@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-05-10T17:05:56.514Z") @Stability(value=Stable) 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.services.lambda.*;
import software.amazon.awscdk.core.*;
IDestination destination;
EventInvokeConfigOptions eventInvokeConfigOptions = EventInvokeConfigOptions.builder()
.maxEventAge(Duration.minutes(30))
.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()
The maximum age of a request that Lambda sends to a function for processing.
|
default IDestination |
getOnFailure()
The destination for failed invocations.
|
default IDestination |
getOnSuccess()
The destination for successful invocations.
|
default Number |
getRetryAttempts()
The maximum number of times to retry when the function returns an error.
|
@Stability(value=Stable) @Nullable default Duration getMaxEventAge()
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
@Stability(value=Stable) @Nullable default IDestination getOnFailure()
Default: - no destination
@Stability(value=Stable) @Nullable default IDestination getOnSuccess()
Default: - no destination
@Stability(value=Stable) @Nullable default Number getRetryAttempts()
Minimum: 0 Maximum: 2
Default: 2
@Stability(value=Stable) static EventInvokeConfigOptions.Builder builder()
EventInvokeConfigOptions.Builder of EventInvokeConfigOptionsCopyright © 2023. All rights reserved.