Class EventInvokeConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.EventInvokeConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventInvokeConfig>
- Enclosing class:
EventInvokeConfig
@Stability(Stable)
public static final class EventInvokeConfig.Builder
extends Object
implements software.amazon.jsii.Builder<EventInvokeConfig>
A fluent builder for
EventInvokeConfig
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static EventInvokeConfig.Builder
The Lambda function.maxEventAge
(Duration maxEventAge) The maximum age of a request that Lambda sends to a function for processing.onFailure
(IDestination onFailure) The destination for failed invocations.onSuccess
(IDestination onSuccess) The destination for successful invocations.The qualifier.retryAttempts
(Number retryAttempts) The maximum number of times to retry when the function returns an error.
-
Method Details
-
create
@Stability(Stable) public static EventInvokeConfig.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.- Returns:
- a new instance of
EventInvokeConfig.Builder
.
-
maxEventAge
The maximum age of a request that Lambda sends to a function for processing.Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
- Parameters:
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing. This parameter is required.- Returns:
this
-
onFailure
The destination for failed invocations.Default: - no destination
- Parameters:
onFailure
- The destination for failed invocations. This parameter is required.- Returns:
this
-
onSuccess
The destination for successful invocations.Default: - no destination
- Parameters:
onSuccess
- The destination for successful invocations. This parameter is required.- Returns:
this
-
retryAttempts
The maximum number of times to retry when the function returns an error.Minimum: 0 Maximum: 2
Default: 2
- Parameters:
retryAttempts
- The maximum number of times to retry when the function returns an error. This parameter is required.- Returns:
this
-
function
The Lambda function.- Parameters:
function
- The Lambda function. This parameter is required.- Returns:
this
-
qualifier
The qualifier.Default: - latest version
- Parameters:
qualifier
- The qualifier. This parameter is required.- Returns:
this
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventInvokeConfig>
- Returns:
- a newly built instance of
EventInvokeConfig
.
-