Class CfnVersion.FunctionScalingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lambda.CfnVersion.FunctionScalingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVersion.FunctionScalingConfigProperty>
- Enclosing interface:
CfnVersion.FunctionScalingConfigProperty
@Stability(Stable)
public static final class CfnVersion.FunctionScalingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVersion.FunctionScalingConfigProperty>
A builder for
CfnVersion.FunctionScalingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxExecutionEnvironments(Number maxExecutionEnvironments) Sets the value ofCfnVersion.FunctionScalingConfigProperty.getMaxExecutionEnvironments()minExecutionEnvironments(Number minExecutionEnvironments) Sets the value ofCfnVersion.FunctionScalingConfigProperty.getMinExecutionEnvironments()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxExecutionEnvironments
@Stability(Stable) public CfnVersion.FunctionScalingConfigProperty.Builder maxExecutionEnvironments(Number maxExecutionEnvironments) Sets the value ofCfnVersion.FunctionScalingConfigProperty.getMaxExecutionEnvironments()- Parameters:
maxExecutionEnvironments- The maximum number of execution environments that can be provisioned for the function.- Returns:
this
-
minExecutionEnvironments
@Stability(Stable) public CfnVersion.FunctionScalingConfigProperty.Builder minExecutionEnvironments(Number minExecutionEnvironments) Sets the value ofCfnVersion.FunctionScalingConfigProperty.getMinExecutionEnvironments()- Parameters:
minExecutionEnvironments- The minimum number of execution environments to maintain for the function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVersion.FunctionScalingConfigProperty>- Returns:
- a new instance of
CfnVersion.FunctionScalingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-