Class TimeoutAction
TimeoutAction defines the action to take when a timeout occurs if a scaling point is not found.
Inheritance
Namespace: Amazon.CDK.AWS.RDS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public sealed class TimeoutAction : Enum
Syntax (vb)
Public NotInheritable Class TimeoutAction
Inherits
Enum
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. |
value__ |
Fields
FORCE_APPLY_CAPACITY_CHANGE
FORCE_APPLY_CAPACITY_CHANGE sets the capacity to the specified value as soon as possible.
public const TimeoutAction FORCE_APPLY_CAPACITY_CHANGE
Field Value
Type | Description |
---|---|
Timeout |
Remarks
Transactions may be interrupted, and connections to temporary tables and locks may be dropped. Only select this option if your application can recover from dropped connections or incomplete transactions.
ROLLBACK_CAPACITY_CHANGE
ROLLBACK_CAPACITY_CHANGE ignores the capacity change if a scaling point is not found.
public const TimeoutAction ROLLBACK_CAPACITY_CHANGE
Field Value
Type | Description |
---|---|
Timeout |
Remarks
This is the default behavior.
value__
public int value__
Field Value
Type | Description |
---|---|
System. |