Interface ThroughputProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ThroughputProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.89.0 (build 2f74b3e)",
date="2023-10-26T00:56:06.585Z")
@Stability(Stable)
public interface ThroughputProps
extends software.amazon.jsii.JsiiSerializable
Properties used to configure provisioned throughput for a DynamoDB table.
Example:
TableV2 table = TableV2.Builder.create(this, "Table")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.billing(Billing.provisioned(ThroughputProps.builder()
.readCapacity(Capacity.fixed(10))
.writeCapacity(Capacity.autoscaled(AutoscaledCapacityOptions.builder().maxCapacity(10).build()))
.build()))
.globalSecondaryIndexes(List.of(GlobalSecondaryIndexPropsV2.builder()
.indexName("gsi1")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.readCapacity(Capacity.fixed(15))
.build(), GlobalSecondaryIndexPropsV2.builder()
.indexName("gsi2")
.partitionKey(Attribute.builder().name("pk").type(AttributeType.STRING).build())
.writeCapacity(Capacity.autoscaled(AutoscaledCapacityOptions.builder().minCapacity(5).maxCapacity(20).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
-