Interface ThroughputProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ThroughputProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:02.732Z")
@Stability(Stable)
public interface ThroughputProps
extends software.amazon.jsii.JsiiSerializable
Properties used to configure provisioned throughput for a DynamoDB table.
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forThroughputPropsstatic final classAn implementation forThroughputProps -
Method Summary
Modifier and TypeMethodDescriptionstatic ThroughputProps.Builderbuilder()The read capacity.The write capacity.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getReadCapacity
The read capacity. -
getWriteCapacity
The write capacity. -
builder
- Returns:
- a
ThroughputProps.BuilderofThroughputProps
-