amazonka-dynamodb-2.0: Amazon DynamoDB 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.DynamoDB.Types.ConsumedCapacity

Description

 
Synopsis

Documentation

data ConsumedCapacity Source #

The capacity units consumed by an operation. The data returned includes the total provisioned throughput consumed, along with statistics for the table and any indexes involved in the operation. ConsumedCapacity is only returned if the request asked for it. For more information, see Provisioned Throughput in the Amazon DynamoDB Developer Guide.

See: newConsumedCapacity smart constructor.

Constructors

ConsumedCapacity' 

Fields

Instances

Instances details
FromJSON ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

Generic ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

Associated Types

type Rep ConsumedCapacity :: Type -> Type #

Read ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

Show ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

NFData ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

Methods

rnf :: ConsumedCapacity -> () #

Eq ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

Hashable ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

type Rep ConsumedCapacity Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.ConsumedCapacity

type Rep ConsumedCapacity = D1 ('MetaData "ConsumedCapacity" "Amazonka.DynamoDB.Types.ConsumedCapacity" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (C1 ('MetaCons "ConsumedCapacity'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "capacityUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: (S1 ('MetaSel ('Just "globalSecondaryIndexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Capacity))) :*: S1 ('MetaSel ('Just "localSecondaryIndexes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Capacity))))) :*: ((S1 ('MetaSel ('Just "readCapacityUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "table") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Capacity))) :*: (S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "writeCapacityUnits") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double))))))

newConsumedCapacity :: ConsumedCapacity Source #

Create a value of ConsumedCapacity 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:

ConsumedCapacity, consumedCapacity_capacityUnits - The total number of capacity units consumed by the operation.

$sel:globalSecondaryIndexes:ConsumedCapacity', consumedCapacity_globalSecondaryIndexes - The amount of throughput consumed on each global index affected by the operation.

$sel:localSecondaryIndexes:ConsumedCapacity', consumedCapacity_localSecondaryIndexes - The amount of throughput consumed on each local index affected by the operation.

ConsumedCapacity, consumedCapacity_readCapacityUnits - The total number of read capacity units consumed by the operation.

$sel:table:ConsumedCapacity', consumedCapacity_table - The amount of throughput consumed on the table affected by the operation.

$sel:tableName:ConsumedCapacity', consumedCapacity_tableName - The name of the table that was affected by the operation.

ConsumedCapacity, consumedCapacity_writeCapacityUnits - The total number of write capacity units consumed by the operation.

consumedCapacity_capacityUnits :: Lens' ConsumedCapacity (Maybe Double) Source #

The total number of capacity units consumed by the operation.

consumedCapacity_globalSecondaryIndexes :: Lens' ConsumedCapacity (Maybe (HashMap Text Capacity)) Source #

The amount of throughput consumed on each global index affected by the operation.

consumedCapacity_localSecondaryIndexes :: Lens' ConsumedCapacity (Maybe (HashMap Text Capacity)) Source #

The amount of throughput consumed on each local index affected by the operation.

consumedCapacity_readCapacityUnits :: Lens' ConsumedCapacity (Maybe Double) Source #

The total number of read capacity units consumed by the operation.

consumedCapacity_table :: Lens' ConsumedCapacity (Maybe Capacity) Source #

The amount of throughput consumed on the table affected by the operation.

consumedCapacity_tableName :: Lens' ConsumedCapacity (Maybe Text) Source #

The name of the table that was affected by the operation.

consumedCapacity_writeCapacityUnits :: Lens' ConsumedCapacity (Maybe Double) Source #

The total number of write capacity units consumed by the operation.