| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.KeySpaces.Types.CapacitySpecification
Description
Synopsis
- data CapacitySpecification = CapacitySpecification' {}
- newCapacitySpecification :: ThroughputMode -> CapacitySpecification
- capacitySpecification_readCapacityUnits :: Lens' CapacitySpecification (Maybe Natural)
- capacitySpecification_writeCapacityUnits :: Lens' CapacitySpecification (Maybe Natural)
- capacitySpecification_throughputMode :: Lens' CapacitySpecification ThroughputMode
Documentation
data CapacitySpecification Source #
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.
See: newCapacitySpecification smart constructor.
Constructors
| CapacitySpecification' | |
Fields
| |
Instances
newCapacitySpecification Source #
Create a value of CapacitySpecification with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:readCapacityUnits:CapacitySpecification', capacitySpecification_readCapacityUnits - The throughput capacity specified for read operations defined in
read capacity units (RCUs).
$sel:writeCapacityUnits:CapacitySpecification', capacitySpecification_writeCapacityUnits - The throughput capacity specified for write operations defined in
write capacity units (WCUs).
$sel:throughputMode:CapacitySpecification', capacitySpecification_throughputMode - 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.
capacitySpecification_readCapacityUnits :: Lens' CapacitySpecification (Maybe Natural) Source #
The throughput capacity specified for read operations defined in
read capacity units (RCUs).
capacitySpecification_writeCapacityUnits :: Lens' CapacitySpecification (Maybe Natural) Source #
The throughput capacity specified for write operations defined in
write capacity units (WCUs).
capacitySpecification_throughputMode :: Lens' CapacitySpecification ThroughputMode Source #
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.