Interface CfnTable.AutoScalingSettingProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTable.AutoScalingSettingProperty.Jsii$Proxy
Enclosing class:
CfnTable

@Stability(Stable) public static interface CfnTable.AutoScalingSettingProperty extends software.amazon.jsii.JsiiSerializable
The optional auto scaling settings for a table with provisioned throughput capacity.

To turn on auto scaling for a table in throughputMode:PROVISIONED , you must specify the following parameters.

Configure the minimum and maximum capacity units. The auto scaling policy ensures that capacity never goes below the minimum or above the maximum range.

  • minimumUnits : The minimum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
  • maximumUnits : The maximum level of throughput the table should always be ready to support. The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
  • scalingPolicy : Amazon Keyspaces supports the target tracking scaling policy. The auto scaling target is a percentage of the provisioned capacity of the table.

For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.cassandra.*;
 AutoScalingSettingProperty autoScalingSettingProperty = AutoScalingSettingProperty.builder()
         .autoScalingDisabled(false)
         .maximumUnits(123)
         .minimumUnits(123)
         .scalingPolicy(ScalingPolicyProperty.builder()
                 .targetTrackingScalingPolicyConfiguration(TargetTrackingScalingPolicyConfigurationProperty.builder()
                         .targetValue(123)
                         // the properties below are optional
                         .disableScaleIn(false)
                         .scaleInCooldown(123)
                         .scaleOutCooldown(123)
                         .build())
                 .build())
         .build();
 

See Also: