@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoScalingSettings extends Object implements Serializable, Cloneable, StructuredPojo
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 the provisioned 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 define targetValue
as a percentage. A double
between 20 and 90. (Required)
disableScaleIn
: A boolean
that specifies if scale-in
is disabled or enabled
for the table. This parameter is disabled by default. To turn on scale-in
, set the boolean
value to FALSE
. 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.
Constructor and Description |
---|
AutoScalingSettings() |
Modifier and Type | Method and Description |
---|---|
AutoScalingSettings |
clone() |
boolean |
equals(Object obj) |
Boolean |
getAutoScalingDisabled()
This optional parameter enables auto scaling for the table if set to
false . |
Long |
getMaximumUnits()
Manage costs by specifying the maximum amount of throughput to provision.
|
Long |
getMinimumUnits()
The minimum level of throughput the table should always be ready to support.
|
AutoScalingPolicy |
getScalingPolicy()
Amazon Keyspaces supports the
target tracking auto scaling policy. |
int |
hashCode() |
Boolean |
isAutoScalingDisabled()
This optional parameter enables auto scaling for the table if set to
false . |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutoScalingDisabled(Boolean autoScalingDisabled)
This optional parameter enables auto scaling for the table if set to
false . |
void |
setMaximumUnits(Long maximumUnits)
Manage costs by specifying the maximum amount of throughput to provision.
|
void |
setMinimumUnits(Long minimumUnits)
The minimum level of throughput the table should always be ready to support.
|
void |
setScalingPolicy(AutoScalingPolicy scalingPolicy)
Amazon Keyspaces supports the
target tracking auto scaling policy. |
String |
toString()
Returns a string representation of this object.
|
AutoScalingSettings |
withAutoScalingDisabled(Boolean autoScalingDisabled)
This optional parameter enables auto scaling for the table if set to
false . |
AutoScalingSettings |
withMaximumUnits(Long maximumUnits)
Manage costs by specifying the maximum amount of throughput to provision.
|
AutoScalingSettings |
withMinimumUnits(Long minimumUnits)
The minimum level of throughput the table should always be ready to support.
|
AutoScalingSettings |
withScalingPolicy(AutoScalingPolicy scalingPolicy)
Amazon Keyspaces supports the
target tracking auto scaling policy. |
public void setAutoScalingDisabled(Boolean autoScalingDisabled)
This optional parameter enables auto scaling for the table if set to false
.
autoScalingDisabled
- This optional parameter enables auto scaling for the table if set to false
.public Boolean getAutoScalingDisabled()
This optional parameter enables auto scaling for the table if set to false
.
false
.public AutoScalingSettings withAutoScalingDisabled(Boolean autoScalingDisabled)
This optional parameter enables auto scaling for the table if set to false
.
autoScalingDisabled
- This optional parameter enables auto scaling for the table if set to false
.public Boolean isAutoScalingDisabled()
This optional parameter enables auto scaling for the table if set to false
.
false
.public void setMinimumUnits(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).
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).public Long 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).
public AutoScalingSettings withMinimumUnits(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).
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).public void setMaximumUnits(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).
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).public Long 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).
public AutoScalingSettings withMaximumUnits(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).
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).public void setScalingPolicy(AutoScalingPolicy scalingPolicy)
Amazon Keyspaces supports the target 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.
scalingPolicy
- Amazon Keyspaces supports the target 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.public AutoScalingPolicy getScalingPolicy()
Amazon Keyspaces supports the target 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.
target 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.public AutoScalingSettings withScalingPolicy(AutoScalingPolicy scalingPolicy)
Amazon Keyspaces supports the target 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.
scalingPolicy
- Amazon Keyspaces supports the target 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.public String toString()
toString
in class Object
Object.toString()
public AutoScalingSettings clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.