ServerlessScalingOptions

class aws_cdk.aws_rds.ServerlessScalingOptions(*, auto_pause=None, max_capacity=None, min_capacity=None)

Bases: object

(experimental) Options for configuring scaling on an Aurora Serverless cluster.

Parameters
  • auto_pause (Optional[Duration]) – (experimental) 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 Default: - automatic pause enabled after 5 minutes

  • max_capacity (Optional[AuroraCapacityUnit]) – (experimental) The maximum capacity for an Aurora Serverless database cluster. Default: - determined by Aurora based on database engine

  • min_capacity (Optional[AuroraCapacityUnit]) – (experimental) The minimum capacity for an Aurora Serverless database cluster. Default: - determined by Aurora based on database engine

Stability

experimental

Attributes

auto_pause

(experimental) 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

Default
  • automatic pause enabled after 5 minutes

Stability

experimental

Return type

Optional[Duration]

max_capacity

(experimental) The maximum capacity for an Aurora Serverless database cluster.

Default
  • determined by Aurora based on database engine

Stability

experimental

Return type

Optional[AuroraCapacityUnit]

min_capacity

(experimental) The minimum capacity for an Aurora Serverless database cluster.

Default
  • determined by Aurora based on database engine

Stability

experimental

Return type

Optional[AuroraCapacityUnit]