Class CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.rds.CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty>
- Enclosing interface:
CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty
@Stability(Stable)
public static final class CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxCapacity(Number maxCapacity) minCapacity(Number minCapacity) secondsUntilAutoPause(Number secondsUntilAutoPause)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder maxCapacity(Number maxCapacity) - 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
ParameterApplyStatusvalue 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 CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder minCapacity(Number minCapacity) - 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 CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.Builder secondsUntilAutoPause(Number secondsUntilAutoPause) Sets the value ofCfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty.getSecondsUntilAutoPause()- 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:
buildin interfacesoftware.amazon.jsii.Builder<CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty>- Returns:
- a new instance of
CfnDBClusterPropsMixin.ServerlessV2ScalingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-