Class EventInvokeConfigProps.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.EventInvokeConfigProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EventInvokeConfigProps>
- Enclosing interface:
EventInvokeConfigProps
@Stability(Stable)
public static final class EventInvokeConfigProps.Builder
extends Object
implements software.amazon.jsii.Builder<EventInvokeConfigProps>
A builder for
EventInvokeConfigProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofEventInvokeConfigProps.getFunction()
maxEventAge
(Duration maxEventAge) Sets the value ofEventInvokeConfigOptions.getMaxEventAge()
onFailure
(IDestination onFailure) Sets the value ofEventInvokeConfigOptions.getOnFailure()
onSuccess
(IDestination onSuccess) Sets the value ofEventInvokeConfigOptions.getOnSuccess()
Sets the value ofEventInvokeConfigProps.getQualifier()
retryAttempts
(Number retryAttempts) Sets the value ofEventInvokeConfigOptions.getRetryAttempts()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
function
Sets the value ofEventInvokeConfigProps.getFunction()
- Parameters:
function
- The Lambda function. This parameter is required.- Returns:
this
-
qualifier
Sets the value ofEventInvokeConfigProps.getQualifier()
- Parameters:
qualifier
- The qualifier.- Returns:
this
-
maxEventAge
Sets the value ofEventInvokeConfigOptions.getMaxEventAge()
- Parameters:
maxEventAge
- The maximum age of a request that Lambda sends to a function for processing. Minimum: 60 seconds Maximum: 6 hours- Returns:
this
-
onFailure
Sets the value ofEventInvokeConfigOptions.getOnFailure()
- Parameters:
onFailure
- The destination for failed invocations.- Returns:
this
-
onSuccess
Sets the value ofEventInvokeConfigOptions.getOnSuccess()
- Parameters:
onSuccess
- The destination for successful invocations.- Returns:
this
-
retryAttempts
Sets the value ofEventInvokeConfigOptions.getRetryAttempts()
- Parameters:
retryAttempts
- The maximum number of times to retry when the function returns an error. Minimum: 0 Maximum: 2- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EventInvokeConfigProps>
- Returns:
- a new instance of
EventInvokeConfigProps
- Throws:
NullPointerException
- if any required attribute was not provided
-