Class CfnFunction.DurableConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnFunction.DurableConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunction.DurableConfigProperty>
- Enclosing interface:
CfnFunction.DurableConfigProperty
@Stability(Stable)
public static final class CfnFunction.DurableConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunction.DurableConfigProperty>
A builder for
CfnFunction.DurableConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.executionTimeout(Number executionTimeout) Sets the value ofCfnFunction.DurableConfigProperty.getExecutionTimeout()retentionPeriodInDays(Number retentionPeriodInDays) Sets the value ofCfnFunction.DurableConfigProperty.getRetentionPeriodInDays()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionTimeout
@Stability(Stable) public CfnFunction.DurableConfigProperty.Builder executionTimeout(Number executionTimeout) Sets the value ofCfnFunction.DurableConfigProperty.getExecutionTimeout()- Parameters:
executionTimeout- The amount of time (in seconds) that Lambda allows a durable function to run before stopping it. This parameter is required. The maximum is one 366-day year or 31,622,400 seconds.- Returns:
this
-
retentionPeriodInDays
@Stability(Stable) public CfnFunction.DurableConfigProperty.Builder retentionPeriodInDays(Number retentionPeriodInDays) Sets the value ofCfnFunction.DurableConfigProperty.getRetentionPeriodInDays()- Parameters:
retentionPeriodInDays- The number of days after a durable execution is closed that Lambda retains its history, from one to 90 days. The default is 14 days.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunction.DurableConfigProperty>- Returns:
- a new instance of
CfnFunction.DurableConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-