/AWS1/CL_KYSCAPACITYSPEC¶
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.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
iv_throughputmode TYPE /AWS1/KYSTHROUGHPUTMODE /AWS1/KYSTHROUGHPUTMODE¶
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.
Optional arguments:¶
iv_readcapacityunits TYPE /AWS1/KYSCAPACITYUNITS /AWS1/KYSCAPACITYUNITS¶
The throughput capacity specified for
readoperations defined inread capacity units(RCUs).
iv_writecapacityunits TYPE /AWS1/KYSCAPACITYUNITS /AWS1/KYSCAPACITYUNITS¶
The throughput capacity specified for
writeoperations defined inwrite capacity units(WCUs).
Queryable Attributes¶
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.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_THROUGHPUTMODE() |
Getter for THROUGHPUTMODE, with configurable default |
ASK_THROUGHPUTMODE() |
Getter for THROUGHPUTMODE w/ exceptions if field has no valu |
HAS_THROUGHPUTMODE() |
Determine if THROUGHPUTMODE has a value |
readCapacityUnits¶
The throughput capacity specified for
readoperations defined inread capacity units(RCUs).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_READCAPACITYUNITS() |
Getter for READCAPACITYUNITS, with configurable default |
ASK_READCAPACITYUNITS() |
Getter for READCAPACITYUNITS w/ exceptions if field has no v |
HAS_READCAPACITYUNITS() |
Determine if READCAPACITYUNITS has a value |
writeCapacityUnits¶
The throughput capacity specified for
writeoperations defined inwrite capacity units(WCUs).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WRITECAPACITYUNITS() |
Getter for WRITECAPACITYUNITS, with configurable default |
ASK_WRITECAPACITYUNITS() |
Getter for WRITECAPACITYUNITS w/ exceptions if field has no |
HAS_WRITECAPACITYUNITS() |
Determine if WRITECAPACITYUNITS has a value |