Class CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.cassandra.CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTable.TargetTrackingScalingPolicyConfigurationProperty>
- Enclosing interface:
CfnTable.TargetTrackingScalingPolicyConfigurationProperty
@Stability(Stable)
public static final class CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTable.TargetTrackingScalingPolicyConfigurationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.disableScaleIn
(Boolean disableScaleIn) disableScaleIn
(IResolvable disableScaleIn) scaleInCooldown
(Number scaleInCooldown) scaleOutCooldown
(Number scaleOutCooldown) targetValue
(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetValue
@Stability(Stable) public CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue
- Specifies the target value for the target tracking auto scaling policy. This parameter is required. Amazon Keyspaces auto scaling scales up capacity automatically when traffic exceeds this target utilization rate, and then back down when it falls below the target. This ensures that the ratio of consumed capacity to provisioned capacity stays at or near this value. You definetargetValue
as a percentage. Aninteger
between 20 and 90.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(Boolean disableScaleIn) - Parameters:
disableScaleIn
- Specifies ifscale-in
is enabled. When auto scaling automatically decreases capacity for a table, the table scales in . When scaling policies are set, they can't scale in the table lower than its minimum capacity.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn) - Parameters:
disableScaleIn
- Specifies ifscale-in
is enabled. When auto scaling automatically decreases capacity for a table, the table scales in . When scaling policies are set, they can't scale in the table lower than its minimum capacity.- Returns:
this
-
scaleInCooldown
@Stability(Stable) public CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleInCooldown(Number scaleInCooldown) - Parameters:
scaleInCooldown
- Specifies ascale-in
cool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.- Returns:
this
-
scaleOutCooldown
@Stability(Stable) public CfnTable.TargetTrackingScalingPolicyConfigurationProperty.Builder scaleOutCooldown(Number scaleOutCooldown) - Parameters:
scaleOutCooldown
- Specifies a scale out cool down period. A cooldown period in seconds between scaling activities that lets the table stabilize before another scaling activity starts.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTable.TargetTrackingScalingPolicyConfigurationProperty>
- Returns:
- a new instance of
CfnTable.TargetTrackingScalingPolicyConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-