class Amazonite::DynamoDB::ConsumedCapacity

Overview

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 capacity mode in the Amazon DynamoDB Developer Guide.

Included Modules

Defined in:

dynamodb/consumed_capacity.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(table_name : String | Nil = nil, capacity_units : Float64 | Nil = nil, read_capacity_units : Float64 | Nil = nil, write_capacity_units : Float64 | Nil = nil, table : Capacity | Nil = nil, local_secondary_indexes : Hash(String, Capacity) | Nil = nil, global_secondary_indexes : Hash(String, Capacity) | Nil = nil, vector_indexes : Hash(String, VectorCapacity) | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def capacity_units : Float64 | Nil #

The total number of capacity units consumed by the operation.


[View source]
def capacity_units=(capacity_units : Float64 | Nil) #

The total number of capacity units consumed by the operation.


[View source]
def global_secondary_indexes : Hash(String, Capacity) | Nil #

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


[View source]
def global_secondary_indexes=(global_secondary_indexes : Hash(String, Capacity) | Nil) #

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


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def local_secondary_indexes : Hash(String, Capacity) | Nil #

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


[View source]
def local_secondary_indexes=(local_secondary_indexes : Hash(String, Capacity) | Nil) #

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


[View source]
def read_capacity_units : Float64 | Nil #

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


[View source]
def read_capacity_units=(read_capacity_units : Float64 | Nil) #

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


[View source]
def table : Capacity | Nil #

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


[View source]
def table=(table : Capacity | Nil) #

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


[View source]
def table_name : String | Nil #

The name of the table that was affected by the operation. If you had specified the Amazon Resource Name (ARN) of a table in the input, you'll see the table ARN in the response.


[View source]
def table_name=(table_name : String | Nil) #

The name of the table that was affected by the operation. If you had specified the Amazon Resource Name (ARN) of a table in the input, you'll see the table ARN in the response.


[View source]
def validate! : Nil #

[View source]
def vector_indexes : Hash(String, VectorCapacity) | Nil #

The amount of throughput consumed on each vector index affected by the operation. Each entry contains VectorWriteRequestBytes (for write operations) or VectorSearchRequestBytes (for search operations).


[View source]
def vector_indexes=(vector_indexes : Hash(String, VectorCapacity) | Nil) #

The amount of throughput consumed on each vector index affected by the operation. Each entry contains VectorWriteRequestBytes (for write operations) or VectorSearchRequestBytes (for search operations).


[View source]
def write_capacity_units : Float64 | Nil #

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


[View source]
def write_capacity_units=(write_capacity_units : Float64 | Nil) #

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


[View source]