Enum TimeoutAction
TimeoutAction defines the action to take when a timeout occurs if a scaling point is not found.
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum TimeoutAction
Syntax (vb)
Public Enum TimeoutAction
Remarks
ExampleMetadata: infused
Examples
Vpc vpc;
var cluster = new ServerlessCluster(this, "AnotherCluster", new ServerlessClusterProps {
Engine = DatabaseClusterEngine.AURORA_POSTGRESQL,
CopyTagsToSnapshot = true, // whether to save the cluster tags when creating the snapshot. Default is 'true'
ParameterGroup = ParameterGroup.FromParameterGroupName(this, "ParameterGroup", "default.aurora-postgresql11"),
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, // default is 16 Aurora capacity units (ACUs)
Timeout = Duration.Seconds(100), // default is 5 minutes
TimeoutAction = TimeoutAction.FORCE_APPLY_CAPACITY_CHANGE
}
});
Synopsis
Fields
FORCE_APPLY_CAPACITY_CHANGE | FORCE_APPLY_CAPACITY_CHANGE sets the capacity to the specified value as soon as possible. |
ROLLBACK_CAPACITY_CHANGE | ROLLBACK_CAPACITY_CHANGE ignores the capacity change if a scaling point is not found. |
Fields
Name | Description |
---|---|
FORCE_APPLY_CAPACITY_CHANGE | FORCE_APPLY_CAPACITY_CHANGE sets the capacity to the specified value as soon as possible. |
ROLLBACK_CAPACITY_CHANGE | ROLLBACK_CAPACITY_CHANGE ignores the capacity change if a scaling point is not found. |