Interface AutoscaledCapacityOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AutoscaledCapacityOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-11T15:55:56.258Z")
@Stability(Stable)
public interface AutoscaledCapacityOptions
extends software.amazon.jsii.JsiiSerializable
Options used to configure autoscaled capacity.
Example:
import software.amazon.awscdk.*; App app = new App(); Stack stack = Stack.Builder.create(app, "Stack").env(Environment.builder().region("us-west-2").build()).build(); TableV2 globalTable = TableV2.Builder.create(stack, "GlobalTable") .partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build()) .billing(Billing.provisioned(ThroughputProps.builder() .readCapacity(Capacity.fixed(10)) .writeCapacity(Capacity.autoscaled(AutoscaledCapacityOptions.builder().maxCapacity(15).build())) .build())) .replicas(List.of(ReplicaTableProps.builder() .region("us-east-1") .build(), ReplicaTableProps.builder() .region("us-east-2") .readCapacity(Capacity.autoscaled(AutoscaledCapacityOptions.builder().maxCapacity(20).targetUtilizationPercent(50).build())) .build())) .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forAutoscaledCapacityOptions
static final class
An implementation forAutoscaledCapacityOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The maximum allowable capacity.default Number
The minimum allowable capacity.default Number
If you want to switch a table's billing mode from on-demand to provisioned or from provisioned to on-demand, you must specify a value for this property for each autoscaled resource.default Number
The ratio of consumed capacity units to provisioned capacity units.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxCapacity
The maximum allowable capacity. -
getMinCapacity
The minimum allowable capacity.Default: 1
-
getSeedCapacity
If you want to switch a table's billing mode from on-demand to provisioned or from provisioned to on-demand, you must specify a value for this property for each autoscaled resource.Default: no seed capacity
-
getTargetUtilizationPercent
The ratio of consumed capacity units to provisioned capacity units.Note: Target utilization percent cannot be less than 20 and cannot be greater than 90.
Default: 70
-
builder
- Returns:
- a
AutoscaledCapacityOptions.Builder
ofAutoscaledCapacityOptions
-