Table of Contents

Class BatchGetItemRequest

Namespace
DynaSharp.Requests
Assembly
DynaSharp.dll

Reads items from one or more tables by primary key in a single call (DynamoDB BatchGetItem).

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

Remarks

This is the low-level request: the library neither splits a request that is too large nor repeats the keys DynamoDB leaves unprocessed. A call can name at most 100 keys in all and returns at most 16 MB; an item can be at most 400 KB. DynamoDB rejects a request that names more than 100 keys, or the same key twice, with a ValidationException.

Constructors

BatchGetItemRequest()

public BatchGetItemRequest()

Properties

RequestItems

Gets the keys to read, by table name (or table ARN). Each table can occur once. DynamoDB rejects an empty map.

public required IReadOnlyDictionary<string, KeysAndAttributes> RequestItems { get; init; }

Property Value

IReadOnlyDictionary<string, KeysAndAttributes>

ReturnConsumedCapacity

Gets whether to report consumed capacity in ConsumedCapacity, one entry per table.

public ReturnConsumedCapacity ReturnConsumedCapacity { get; init; }

Property Value

ReturnConsumedCapacity

Methods

Equals(BatchGetItemRequest?)

public bool Equals(BatchGetItemRequest? other)

Parameters

other BatchGetItemRequest

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

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

Parameters

left BatchGetItemRequest
right BatchGetItemRequest

Returns

bool

operator !=(BatchGetItemRequest?, BatchGetItemRequest?)

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

Parameters

left BatchGetItemRequest
right BatchGetItemRequest

Returns

bool