DynamoDBStreams class
Amazon DynamoDB Streams provides API actions for accessing streams and processing stream records. To learn more about application development with Streams, see Capturing Table Activity with DynamoDB Streams in the Amazon DynamoDB Developer Guide.
Constructors
- DynamoDBStreams({required String region, AwsClientCredentials? credentials, AwsClientCredentialsProvider? credentialsProvider, Client? client, String? endpointUrl})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Closes the internal HTTP client if none was provided at creation. If a client was passed as a constructor argument, this becomes a noop.
-
describeStream(
{required String streamArn, String? exclusiveStartShardId, int? limit}) → Future< DescribeStreamOutput> -
Returns information about a stream, including the current status of the
stream, its Amazon Resource Name (ARN), the composition of its shards, and
its corresponding DynamoDB table.
Each shard in the stream has a
SequenceNumberRange
associated with it. If theSequenceNumberRange
has aStartingSequenceNumber
but noEndingSequenceNumber
, then the shard is still open (able to receive more stream records). If bothStartingSequenceNumber
andEndingSequenceNumber
are present, then that shard is closed and can no longer receive more data. -
getRecords(
{required String shardIterator, int? limit}) → Future< GetRecordsOutput> - Retrieves the stream records from a given shard.
-
getShardIterator(
{required String shardId, required ShardIteratorType shardIteratorType, required String streamArn, String? sequenceNumber}) → Future< GetShardIteratorOutput> -
Returns a shard iterator. A shard iterator provides information about how
to retrieve the stream records from within a shard. Use the shard iterator
in a subsequent
GetRecords
request to read the stream records from the shard. -
listStreams(
{String? exclusiveStartStreamArn, int? limit, String? tableName}) → Future< ListStreamsOutput> -
Returns an array of stream ARNs associated with the current account and
endpoint. If the
TableName
parameter is present, thenListStreams
will return only the streams ARNs for that table. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited