Class GetRecordsRequest
Reads records from a shard (DynamoDB Streams GetRecords).
public sealed record GetRecordsRequest : IEquatable<GetRecordsRequest>
- Inheritance
-
GetRecordsRequest
- Implements
- Inherited Members
Remarks
A shard allows five calls per second, and a call returns at most 1 MB of data. Read in a loop: pass NextShardIterator as the next ShardIterator, until it is null.
Constructors
GetRecordsRequest()
public GetRecordsRequest()
Properties
Limit
Gets the maximum number of records to return, 1 to 1,000. null sends nothing, and DynamoDB returns up to 1,000 records or 1 MB.
public int? Limit { get; init; }
Property Value
- int?
ShardIterator
Gets the iterator from GetShardIterator or from the previous GetRecords. It is valid for 15 minutes.
public required string ShardIterator { get; init; }
Property Value
Methods
Equals(GetRecordsRequest?)
public bool Equals(GetRecordsRequest? other)
Parameters
otherGetRecordsRequest
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 ==(GetRecordsRequest?, GetRecordsRequest?)
public static bool operator ==(GetRecordsRequest? left, GetRecordsRequest? right)
Parameters
leftGetRecordsRequestrightGetRecordsRequest
Returns
operator !=(GetRecordsRequest?, GetRecordsRequest?)
public static bool operator !=(GetRecordsRequest? left, GetRecordsRequest? right)
Parameters
leftGetRecordsRequestrightGetRecordsRequest