Class AutoScalingSettings
- java.lang.Object
-
- software.amazon.awssdk.services.keyspaces.model.AutoScalingSettings
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutoScalingSettings.Builder,AutoScalingSettings>
@Generated("software.amazon.awssdk:codegen") public final class AutoScalingSettings extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoScalingSettings.Builder,AutoScalingSettings>
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 units for write and read capacity. 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 trackingscaling policy. The auto scaling target is the provisioned read and write capacity of the table.-
targetTrackingScalingPolicyConfiguration: To define the target tracking policy, you must define the target value.-
targetValue: The target utilization rate of the table. Amazon Keyspaces auto scaling ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You definetargetValueas a percentage. Adoublebetween 20 and 90. (Required) -
disableScaleIn: Abooleanthat specifies ifscale-inis disabled or enabled for the table. This parameter is disabled by default. To turn onscale-in, set thebooleanvalue toFALSE. This means that capacity for a table can be automatically scaled down on your behalf. (Optional) -
scaleInCooldown: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale in activity starts. If no value is provided, the default is 0. (Optional) -
scaleOutCooldown: A cooldown period in seconds between scaling activities that lets the table stabilize before another scale out activity starts. If no value is provided, the default is 0. (Optional)
-
-
For more information, see Managing throughput capacity automatically with Amazon Keyspaces auto scaling in the Amazon Keyspaces Developer Guide.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutoScalingSettings.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoScalingDisabled()This optional parameter enables auto scaling for the table if set tofalse.static AutoScalingSettings.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()LongmaximumUnits()Manage costs by specifying the maximum amount of throughput to provision.LongminimumUnits()The minimum level of throughput the table should always be ready to support.AutoScalingPolicyscalingPolicy()Amazon Keyspaces supports thetarget trackingauto scaling policy.List<SdkField<?>>sdkFields()static Class<? extends AutoScalingSettings.Builder>serializableBuilderClass()AutoScalingSettings.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
autoScalingDisabled
public final Boolean autoScalingDisabled()
This optional parameter enables auto scaling for the table if set to
false.- Returns:
- This optional parameter enables auto scaling for the table if set to
false.
-
minimumUnits
public final Long 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).
- Returns:
- 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
public final Long maximumUnits()
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).
- Returns:
- 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).
-
scalingPolicy
public final AutoScalingPolicy scalingPolicy()
Amazon Keyspaces supports the
target trackingauto 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.- Returns:
- Amazon Keyspaces supports the
target trackingauto 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.
-
toBuilder
public AutoScalingSettings.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutoScalingSettings.Builder,AutoScalingSettings>
-
builder
public static AutoScalingSettings.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutoScalingSettings.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-