Class CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
- Enclosing interface:
CfnDBCluster.ServerlessV2ScalingConfigurationProperty
@Stability(Stable)
public static final class CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
A builder for
CfnDBCluster.ServerlessV2ScalingConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMinCapacity()
secondsUntilAutoPause
(Number secondsUntilAutoPause)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMaxCapacity()
- Parameters:
maxCapacity
- The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 128.The maximum capacity must be higher than 0.5 ACUs. For more information, see Choosing the maximum Aurora Serverless v2 capacity setting for a cluster in the Amazon Aurora User Guide .
Aurora automatically sets certain parameters for Aurora Serverless V2 DB instances to values that depend on the maximum ACU value in the capacity range. When you update the maximum capacity value, the
ParameterApplyStatus
value for the DB instance changes topending-reboot
. You can update the parameter values by rebooting the DB instance after changing the capacity range.- Returns:
this
-
minCapacity
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMinCapacity()
- Parameters:
minCapacity
- The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. For Aurora versions that support the Aurora Serverless v2 auto-pause feature, the smallest value that you can use is 0. For versions that don't support Aurora Serverless v2 auto-pause, the smallest value that you can use is 0.5.- Returns:
this
-
secondsUntilAutoPause
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder secondsUntilAutoPause(Number secondsUntilAutoPause) - Parameters:
secondsUntilAutoPause
- Specifies the number of seconds an Aurora Serverless v2 DB instance must be idle before Aurora attempts to automatically pause it. Specify a value between 300 seconds (five minutes) and 86,400 seconds (one day). The default is 300 seconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
- Returns:
- a new instance of
CfnDBCluster.ServerlessV2ScalingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-