Class BatchWriteItemResponse
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
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
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
Methods
Equals(BatchWriteItemResponse?)
public bool Equals(BatchWriteItemResponse? other)
Parameters
otherBatchWriteItemResponse
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(BatchWriteItemResponse?, BatchWriteItemResponse?)
public static bool operator ==(BatchWriteItemResponse? left, BatchWriteItemResponse? right)
Parameters
leftBatchWriteItemResponserightBatchWriteItemResponse
Returns
operator !=(BatchWriteItemResponse?, BatchWriteItemResponse?)
public static bool operator !=(BatchWriteItemResponse? left, BatchWriteItemResponse? right)
Parameters
leftBatchWriteItemResponserightBatchWriteItemResponse