Skip to main content

shard_iterators

Creates, updates, deletes, gets or lists a shard_iterators resource.

Overview

Nameshard_iterators
TypeResource
Idaws.dynamodbstreams.shard_iterators

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
shard_iteratorstringThe position in the shard from which to start reading stream records sequentially. A shard iterator specifies this position using the sequence number of a stream record in a shard.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_shard_iteratorselectregionReturns 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. A shard iterator expires 15 minutes after it is returned to the requester.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

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. A shard iterator expires 15 minutes after it is returned to the requester.

SELECT
shard_iterator
FROM aws.dynamodbstreams.shard_iterators
WHERE region = '{{ region }}' -- required
;