Show / Hide Table of Contents

Interface IServerlessScalingOptions

Options for configuring scaling on an Aurora Serverless cluster.

Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.AWS.RDS.dll
Syntax (csharp)
public interface IServerlessScalingOptions
Syntax (vb)
Public Interface IServerlessScalingOptions
Remarks

ExampleMetadata: infused

Examples
Vpc vpc;


ServerlessCluster cluster = new ServerlessCluster(this, "AnotherCluster", new ServerlessClusterProps {
    Engine = DatabaseClusterEngine.AURORA_POSTGRESQL,
    ParameterGroup = ParameterGroup.FromParameterGroupName(this, "ParameterGroup", "default.aurora-postgresql10"),
    Vpc = vpc,
    Scaling = new ServerlessScalingOptions {
        AutoPause = Duration.Minutes(10),  // default is to pause after 5 minutes of idle time
        MinCapacity = AuroraCapacityUnit.ACU_8,  // default is 2 Aurora capacity units (ACUs)
        MaxCapacity = AuroraCapacityUnit.ACU_32
    }
});

Synopsis

Properties

AutoPause

The time before an Aurora Serverless database cluster is paused.

MaxCapacity

The maximum capacity for an Aurora Serverless database cluster.

MinCapacity

The minimum capacity for an Aurora Serverless database cluster.

Properties

AutoPause

The time before an Aurora Serverless database cluster is paused.

virtual Duration AutoPause { get; }
Property Value

Duration

Remarks

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

MaxCapacity

The maximum capacity for an Aurora Serverless database cluster.

virtual Nullable<AuroraCapacityUnit> MaxCapacity { get; }
Property Value

System.Nullable<AuroraCapacityUnit>

Remarks

Default: - determined by Aurora based on database engine

MinCapacity

The minimum capacity for an Aurora Serverless database cluster.

virtual Nullable<AuroraCapacityUnit> MinCapacity { get; }
Property Value

System.Nullable<AuroraCapacityUnit>

Remarks

Default: - determined by Aurora based on database engine

Back to top Generated by DocFX