Class CfnFunctionPropsMixin.FunctionScalingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lambda.CfnFunctionPropsMixin.FunctionScalingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin.FunctionScalingConfigProperty>
- Enclosing interface:
CfnFunctionPropsMixin.FunctionScalingConfigProperty
@Stability(Stable)
public static final class CfnFunctionPropsMixin.FunctionScalingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin.FunctionScalingConfigProperty>
A builder for
CfnFunctionPropsMixin.FunctionScalingConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxExecutionEnvironments(Number maxExecutionEnvironments) minExecutionEnvironments(Number minExecutionEnvironments)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxExecutionEnvironments
@Stability(Stable) public CfnFunctionPropsMixin.FunctionScalingConfigProperty.Builder maxExecutionEnvironments(Number maxExecutionEnvironments) - Parameters:
maxExecutionEnvironments- The maximum number of execution environments that can be provisioned for the function.- Returns:
this
-
minExecutionEnvironments
@Stability(Stable) public CfnFunctionPropsMixin.FunctionScalingConfigProperty.Builder minExecutionEnvironments(Number minExecutionEnvironments) - 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<CfnFunctionPropsMixin.FunctionScalingConfigProperty>- Returns:
- a new instance of
CfnFunctionPropsMixin.FunctionScalingConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-