Show / Hide Table of Contents

Class TimeoutAction

TimeoutAction defines the action to take when a timeout occurs if a scaling point is not found.

Inheritance
System.Object
TimeoutAction
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

See: https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/aurora-serverless-v1.how-it-works.html#aurora-serverless.how-it-works.timeout-action

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
TimeoutAction
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
TimeoutAction
Remarks

This is the default behavior.

value__

public int value__
Field Value
Type Description
System.Int32
Back to top Generated by DocFX