Class DurableConfig.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.DurableConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DurableConfig>
- Enclosing interface:
DurableConfig
@Stability(Stable)
public static final class DurableConfig.Builder
extends Object
implements software.amazon.jsii.Builder<DurableConfig>
A builder for
DurableConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.executionTimeout(Duration executionTimeout) Sets the value ofDurableConfig.getExecutionTimeout()retentionPeriod(Duration retentionPeriod) Sets the value ofDurableConfig.getRetentionPeriod()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionTimeout
Sets the value ofDurableConfig.getExecutionTimeout()- Parameters:
executionTimeout- The amount of time that Lambda allows a durable function to run before stopping it. This parameter is required. Must be between 1 and 31,622,400 seconds (366 days).- Returns:
this
-
retentionPeriod
Sets the value ofDurableConfig.getRetentionPeriod()- Parameters:
retentionPeriod- The number of days after a durable execution is closed that Lambda retains its history. Must be between 1 and 90 days.The underlying configuration is expressed in whole numbers of days. Providing a Duration that does not represent a whole number of days will result in a runtime or deployment error.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DurableConfig>- Returns:
- a new instance of
DurableConfig - Throws:
NullPointerException- if any required attribute was not provided
-