Class: Aws::Keyspaces::Types::CapacitySpecification
- Inherits:
-
Struct
- Object
- Struct
- Aws::Keyspaces::Types::CapacitySpecification
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-keyspaces/types.rb
Overview
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*.
[1]: docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#read_capacity_units ⇒ Integer
The throughput capacity specified for ‘read` operations defined in `read capacity units` `(RCUs)`.
-
#throughput_mode ⇒ String
The read/write throughput capacity mode for a table.
-
#write_capacity_units ⇒ Integer
The throughput capacity specified for ‘write` operations defined in `write capacity units` `(WCUs)`.
Instance Attribute Details
#read_capacity_units ⇒ Integer
The throughput capacity specified for ‘read` operations defined in `read capacity units` `(RCUs)`.
207 208 209 210 211 212 213 |
# File 'lib/aws-sdk-keyspaces/types.rb', line 207 class CapacitySpecification < Struct.new( :throughput_mode, :read_capacity_units, :write_capacity_units) SENSITIVE = [] include Aws::Structure end |
#throughput_mode ⇒ String
The read/write throughput capacity mode for a table. The options are:
-
‘throughputMode:PAY_PER_REQUEST` and
-
‘throughputMode:PROVISIONED` - Provisioned capacity mode requires `readCapacityUnits` and `writeCapacityUnits` as input.
The default is ‘throughput_mode:PAY_PER_REQUEST`.
For more information, see [Read/write capacity modes] in the *Amazon Keyspaces Developer Guide*.
[1]: docs.aws.amazon.com/keyspaces/latest/devguide/ReadWriteCapacityMode.html
207 208 209 210 211 212 213 |
# File 'lib/aws-sdk-keyspaces/types.rb', line 207 class CapacitySpecification < Struct.new( :throughput_mode, :read_capacity_units, :write_capacity_units) SENSITIVE = [] include Aws::Structure end |
#write_capacity_units ⇒ Integer
The throughput capacity specified for ‘write` operations defined in `write capacity units` `(WCUs)`.
207 208 209 210 211 212 213 |
# File 'lib/aws-sdk-keyspaces/types.rb', line 207 class CapacitySpecification < Struct.new( :throughput_mode, :read_capacity_units, :write_capacity_units) SENSITIVE = [] include Aws::Structure end |