@Stability(value=Stable)
public static interface CfnDBCluster.ServerlessV2ScalingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Using Amazon Aurora Serverless v2 in the Amazon Aurora User Guide .
If you have an Aurora cluster, you must set the ScalingConfigurationInfo attribute before you add a DB instance that uses the db.serverless DB instance class. For more information, see Clusters that use Aurora Serverless v2 must have a capacity range specified in the Amazon Aurora User Guide .
This property is only supported for Aurora Serverless v2. For Aurora Serverless v1, use ScalingConfiguration property.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.rds.*;
ServerlessV2ScalingConfigurationProperty serverlessV2ScalingConfigurationProperty = ServerlessV2ScalingConfigurationProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
A builder for
CfnDBCluster.ServerlessV2ScalingConfigurationProperty |
static class |
CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Jsii$Proxy
An implementation for
CfnDBCluster.ServerlessV2ScalingConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder |
builder() |
default Number |
getMaxCapacity()
The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
|
default Number |
getMinCapacity()
The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster.
|
@Stability(value=Stable) @Nullable default Number getMaxCapacity()
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 .
@Stability(value=Stable) @Nullable default Number getMinCapacity()
You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5.
@Stability(value=Stable) static CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.