Interface CfnTable.AutoScalingSettingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTable.AutoScalingSettingProperty.Jsii$Proxy
- Enclosing class:
CfnTable
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 thetarget 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:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTable.AutoScalingSettingProperty
static final class
An implementation forCfnTable.AutoScalingSettingProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
This optional parameter enables auto scaling for the table if set tofalse
.default Number
Manage costs by specifying the maximum amount of throughput to provision.default Number
The minimum level of throughput the table should always be ready to support.default Object
Amazon Keyspaces supports thetarget tracking
auto scaling policy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoScalingDisabled
This optional parameter enables auto scaling for the table if set tofalse
.Default: - false
- See Also:
-
getMaximumUnits
Manage costs by specifying the maximum amount of throughput to provision.The value must be between 1 and the max throughput per second quota for your account (40,000 by default).
- See Also:
-
getMinimumUnits
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).
- See Also:
-
getScalingPolicy
Amazon Keyspaces supports thetarget tracking
auto scaling policy.With this policy, Amazon Keyspaces auto scaling ensures that the table's ratio of consumed to provisioned capacity stays at or near the target value that you specify. You define the target value as a percentage between 20 and 90.
- See Also:
-
builder
-