Table of Contents

Class BatchWriteItemResponse

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

The result of BatchWriteItemRequest: which writes were not processed, and the optional metrics.

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

Remarks

A successful call does not mean that every write was applied. When a table is throttled or DynamoDB fails internally for some writes, it applies the others and returns the rest in UnprocessedItems. The caller must send those writes again (RequestItems accepts the map as it is), preferably after a growing wait. A call fails as a whole only when none of the writes could be processed.

Constructors

BatchWriteItemResponse()

public BatchWriteItemResponse()

Properties

ConsumedCapacity

Gets the write capacity consumed, one entry per table, when the request asked for it. Empty otherwise; never null.

public IReadOnlyList<ConsumedCapacity> ConsumedCapacity { get; init; }

Property Value

IReadOnlyList<ConsumedCapacity>

ItemCollectionMetrics

Gets the item collections that the processed writes modified, by table, when the request asked for it and the tables have local secondary indexes. Empty otherwise; never null.

public IReadOnlyDictionary<string, IReadOnlyList<ItemCollectionMetrics>> ItemCollectionMetrics { get; init; }

Property Value

IReadOnlyDictionary<string, IReadOnlyList<ItemCollectionMetrics>>

UnprocessedItems

Gets the writes that were not processed, in the form of the request, so that they can be sent as RequestItems. Empty when everything was written; never null.

public IReadOnlyDictionary<string, IReadOnlyList<WriteRequest>> UnprocessedItems { get; init; }

Property Value

IReadOnlyDictionary<string, IReadOnlyList<WriteRequest>>

Methods

Equals(BatchWriteItemResponse?)

public bool Equals(BatchWriteItemResponse? other)

Parameters

other BatchWriteItemResponse

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 ==(BatchWriteItemResponse?, BatchWriteItemResponse?)

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

Parameters

left BatchWriteItemResponse
right BatchWriteItemResponse

Returns

bool

operator !=(BatchWriteItemResponse?, BatchWriteItemResponse?)

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

Parameters

left BatchWriteItemResponse
right BatchWriteItemResponse

Returns

bool