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 maximum time (in seconds) that a durable execution can run before timing out. This parameter is required. This timeout applies to the entire durable execution, not individual function invocations.- Returns:
this
-
retentionPeriodInDays
@Stability(Stable) public CfnFunction.DurableConfigProperty.Builder retentionPeriodInDays(Number retentionPeriodInDays) Sets the value ofCfnFunction.DurableConfigProperty.getRetentionPeriodInDays()- Parameters:
retentionPeriodInDays- The number of days to retain execution history after a durable execution completes. After this period, execution history is no longer available through the GetDurableExecutionHistory API.- 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
-