amazonka-keyspaces-2.0: Amazon Keyspaces SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.KeySpaces.Types.CapacitySpecification

Description

 
Synopsis

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

  • readCapacityUnits :: Maybe Natural

    The throughput capacity specified for read operations defined in read capacity units (RCUs).

  • writeCapacityUnits :: Maybe Natural

    The throughput capacity specified for write operations defined in write capacity units (WCUs).

  • throughputMode :: 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.

Instances

Instances details
ToJSON CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

Generic CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

Associated Types

type Rep CapacitySpecification :: Type -> Type #

Read CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

Show CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

NFData CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

Methods

rnf :: CapacitySpecification -> () #

Eq CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

Hashable CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

type Rep CapacitySpecification Source # 
Instance details

Defined in Amazonka.KeySpaces.Types.CapacitySpecification

type Rep CapacitySpecification = D1 ('MetaData "CapacitySpecification" "Amazonka.KeySpaces.Types.CapacitySpecification" "amazonka-keyspaces-2.0-IgmNF4xdaFLH03VHAkrBWw" 'False) (C1 ('MetaCons "CapacitySpecification'" 'PrefixI 'True) (S1 ('MetaSel ('Just "readCapacityUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "writeCapacityUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "throughputMode") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ThroughputMode))))

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.