CapacitySpecification
Amazon Keyspaces has two read/write capacity modes for processing reads and writes on your tables:
-
On-demand (default)
-
Provisioned
The read/write capacity mode that you choose controls how you are charged for read and write throughput and how table throughput capacity is managed.
For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
Contents
- throughputMode
-
The read/write throughput capacity mode for a table. The options are:
-
throughputMode:PAY_PER_REQUESTand -
throughputMode:PROVISIONED- Provisioned capacity mode requiresreadCapacityUnitsandwriteCapacityUnitsas input.
The default is
throughput_mode:PAY_PER_REQUEST.For more information, see Read/write capacity modes in the Amazon Keyspaces Developer Guide.
Type: String
Valid Values:
PAY_PER_REQUEST | PROVISIONEDRequired: Yes
-
- readCapacityUnits
-
The throughput capacity specified for
readoperations defined inread capacity units(RCUs).Type: Long
Valid Range: Minimum value of 1.
Required: No
- writeCapacityUnits
-
The throughput capacity specified for
writeoperations defined inwrite capacity units(WCUs).Type: Long
Valid Range: Minimum value of 1.
Required: No
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: