enum TimeoutAction
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.RDS.TimeoutAction |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsrds#TimeoutAction |
![]() | software.amazon.awscdk.services.rds.TimeoutAction |
![]() | aws_cdk.aws_rds.TimeoutAction |
![]() | aws-cdk-lib » aws_rds » TimeoutAction |
TimeoutAction defines the action to take when a timeout occurs if a scaling point is not found.
Example
declare const vpc: ec2.Vpc;
const cluster = new rds.ServerlessCluster(this, 'AnotherCluster', {
engine: rds.DatabaseClusterEngine.AURORA_POSTGRESQL,
copyTagsToSnapshot: true, // whether to save the cluster tags when creating the snapshot. Default is 'true'
parameterGroup: rds.ParameterGroup.fromParameterGroupName(this, 'ParameterGroup', 'default.aurora-postgresql11'),
vpc,
scaling: {
autoPause: Duration.minutes(10), // default is to pause after 5 minutes of idle time
minCapacity: rds.AuroraCapacityUnit.ACU_8, // default is 2 Aurora capacity units (ACUs)
maxCapacity: rds.AuroraCapacityUnit.ACU_32, // default is 16 Aurora capacity units (ACUs)
timeout: Duration.seconds(100), // default is 5 minutes
timeoutAction: rds.TimeoutAction.FORCE_APPLY_CAPACITY_CHANGE // default is ROLLBACK_CAPACITY_CHANGE
}
});
Members
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. |
FORCE_APPLY_CAPACITY_CHANGE
FORCE_APPLY_CAPACITY_CHANGE sets the capacity to the specified value as soon as possible.
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.
This is the default behavior.