Table of Contents

Class GetRecordsRequest

Namespace
DynaSharp.Streams
Assembly
DynaSharp.dll

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

string

Methods

Equals(GetRecordsRequest?)

public bool Equals(GetRecordsRequest? other)

Parameters

other GetRecordsRequest

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

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

Parameters

left GetRecordsRequest
right GetRecordsRequest

Returns

bool

operator !=(GetRecordsRequest?, GetRecordsRequest?)

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

Parameters

left GetRecordsRequest
right GetRecordsRequest

Returns

bool