Interface EnableScalingProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EnableScalingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.264Z")
@Stability(Stable)
public interface EnableScalingProps
extends software.amazon.jsii.JsiiSerializable
Properties for enabling DynamoDB capacity scaling.
Example:
Table globalTable = Table.Builder.create(this, "Table")
.partitionKey(Attribute.builder().name("id").type(AttributeType.STRING).build())
.replicationRegions(List.of("us-east-1", "us-east-2", "us-west-2"))
.billingMode(BillingMode.PROVISIONED)
.build();
globalTable.autoScaleWriteCapacity(EnableScalingProps.builder()
.minCapacity(1)
.maxCapacity(10)
.build()).scaleOnUtilization(UtilizationScalingProps.builder().targetUtilizationPercent(75).build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forEnableScalingPropsstatic final classAn implementation forEnableScalingProps -
Method Summary
Modifier and TypeMethodDescriptionstatic EnableScalingProps.Builderbuilder()Maximum capacity to scale to.Minimum capacity to scale to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxCapacity
Maximum capacity to scale to. -
getMinCapacity
Minimum capacity to scale to. -
builder
- Returns:
- a
EnableScalingProps.BuilderofEnableScalingProps
-