@Stability(value=Stable)
public static interface CfnDBCluster.ScalingConfigurationProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see Using Amazon Aurora Serverless in the Amazon Aurora User Guide .
Currently, AWS CloudFormation only supports Aurora Serverless v1. AWS CloudFormation doesn't support Aurora Serverless v2.
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.*;
ScalingConfigurationProperty scalingConfigurationProperty = ScalingConfigurationProperty.builder()
.autoPause(false)
.maxCapacity(123)
.minCapacity(123)
.secondsUntilAutoPause(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnDBCluster.ScalingConfigurationProperty.Builder
A builder for
CfnDBCluster.ScalingConfigurationProperty |
static class |
CfnDBCluster.ScalingConfigurationProperty.Jsii$Proxy
An implementation for
CfnDBCluster.ScalingConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnDBCluster.ScalingConfigurationProperty.Builder |
builder() |
default Object |
getAutoPause()
A value that indicates whether to allow or disallow automatic pause for an Aurora DB cluster in `serverless` DB engine mode.
|
default Number |
getMaxCapacity()
The maximum capacity for an Aurora DB cluster in `serverless` DB engine mode.
|
default Number |
getMinCapacity()
The minimum capacity for an Aurora DB cluster in `serverless` DB engine mode.
|
default Number |
getSecondsUntilAutoPause()
The time, in seconds, before an Aurora DB cluster in `serverless` mode is paused.
|
@Stability(value=Stable) @Nullable default Object getAutoPause()
A DB cluster can be paused only when it's idle (it has no connections).
If a DB cluster is paused for more than seven days, the DB cluster might be backed up with a snapshot. In this case, the DB cluster is restored when there is a request to connect to it.
@Stability(value=Stable) @Nullable default Number getMaxCapacity()
For Aurora MySQL, valid capacity values are 1 , 2 , 4 , 8 , 16 , 32 , 64 , 128 , and 256 .
For Aurora PostgreSQL, valid capacity values are 2 , 4 , 8 , 16 , 32 , 64 , 192 , and 384 .
The maximum capacity must be greater than or equal to the minimum capacity.
@Stability(value=Stable) @Nullable default Number getMinCapacity()
For Aurora MySQL, valid capacity values are 1 , 2 , 4 , 8 , 16 , 32 , 64 , 128 , and 256 .
For Aurora PostgreSQL, valid capacity values are 2 , 4 , 8 , 16 , 32 , 64 , 192 , and 384 .
The minimum capacity must be less than or equal to the maximum capacity.
@Stability(value=Stable) @Nullable default Number getSecondsUntilAutoPause()
Specify a value between 300 and 86,400 seconds.
@Stability(value=Stable) static CfnDBCluster.ScalingConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.