Table of Contents

Class ConsumedCapacity

Namespace
DynaSharp
Assembly
DynaSharp.dll

The capacity units an operation consumed, reported when the request asked for it with Total or Indexes.

public sealed record ConsumedCapacity : IEquatable<ConsumedCapacity>
Inheritance
ConsumedCapacity
Implements
Inherited Members

Remarks

For on-demand tables these are request units; for provisioned tables, capacity units. The read and write split is only present when DynamoDB reports it.

Constructors

ConsumedCapacity()

public ConsumedCapacity()

Properties

CapacityUnits

Gets the total capacity units consumed. Non-null in the capacity DynamoDB reports; null only if the response omits it.

public double? CapacityUnits { get; init; }

Property Value

double?

GlobalSecondaryIndexes

Gets the capacity consumed per global secondary index. Only with Indexes.

public IReadOnlyDictionary<string, CapacityDetail>? GlobalSecondaryIndexes { get; init; }

Property Value

IReadOnlyDictionary<string, CapacityDetail>

LocalSecondaryIndexes

Gets the capacity consumed per local secondary index. Only with Indexes.

public IReadOnlyDictionary<string, CapacityDetail>? LocalSecondaryIndexes { get; init; }

Property Value

IReadOnlyDictionary<string, CapacityDetail>

ReadCapacityUnits

Gets the read capacity units consumed. null when DynamoDB does not report it separately.

public double? ReadCapacityUnits { get; init; }

Property Value

double?

Table

Gets the capacity consumed on the table itself. Only with Indexes.

public CapacityDetail? Table { get; init; }

Property Value

CapacityDetail

TableName

Gets the table the capacity was consumed on. Non-null in the capacity DynamoDB reports; null only if the response omits it.

public string? TableName { get; init; }

Property Value

string

WriteCapacityUnits

Gets the write capacity units consumed. null when DynamoDB does not report it separately.

public double? WriteCapacityUnits { get; init; }

Property Value

double?

Methods

Equals(ConsumedCapacity?)

public bool Equals(ConsumedCapacity? other)

Parameters

other ConsumedCapacity

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ConsumedCapacity?, ConsumedCapacity?)

public static bool operator ==(ConsumedCapacity? left, ConsumedCapacity? right)

Parameters

left ConsumedCapacity
right ConsumedCapacity

Returns

bool

operator !=(ConsumedCapacity?, ConsumedCapacity?)

public static bool operator !=(ConsumedCapacity? left, ConsumedCapacity? right)

Parameters

left ConsumedCapacity
right ConsumedCapacity

Returns

bool