@Stability(value=Stable) public static final class ServerlessScalingOptions.Builder extends Object implements software.amazon.jsii.Builder<ServerlessScalingOptions>
ServerlessScalingOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ServerlessScalingOptions.Builder |
autoPause(Duration autoPause)
Sets the value of
ServerlessScalingOptions.getAutoPause() |
ServerlessScalingOptions |
build()
Builds the configured instance.
|
ServerlessScalingOptions.Builder |
maxCapacity(AuroraCapacityUnit maxCapacity)
Sets the value of
ServerlessScalingOptions.getMaxCapacity() |
ServerlessScalingOptions.Builder |
minCapacity(AuroraCapacityUnit minCapacity)
Sets the value of
ServerlessScalingOptions.getMinCapacity() |
@Stability(value=Stable) public ServerlessScalingOptions.Builder autoPause(Duration autoPause)
ServerlessScalingOptions.getAutoPause()
autoPause
- The time before an Aurora Serverless database cluster is paused.
A database cluster can be paused only when it is idle (it has no connections).
Auto pause time must be between 5 minutes and 1 day.
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.
Set to 0 to disable
this
@Stability(value=Stable) public ServerlessScalingOptions.Builder maxCapacity(AuroraCapacityUnit maxCapacity)
ServerlessScalingOptions.getMaxCapacity()
maxCapacity
- The maximum capacity for an Aurora Serverless database cluster.this
@Stability(value=Stable) public ServerlessScalingOptions.Builder minCapacity(AuroraCapacityUnit minCapacity)
ServerlessScalingOptions.getMinCapacity()
minCapacity
- The minimum capacity for an Aurora Serverless database cluster.this
@Stability(value=Stable) public ServerlessScalingOptions build()
build
in interface software.amazon.jsii.Builder<ServerlessScalingOptions>
ServerlessScalingOptions
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.