| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DynamoDBStreams.GetShardIterator
Description
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.
Synopsis
- data GetShardIterator = GetShardIterator' {}
- newGetShardIterator :: Text -> Text -> ShardIteratorType -> GetShardIterator
- getShardIterator_sequenceNumber :: Lens' GetShardIterator (Maybe Text)
- getShardIterator_streamArn :: Lens' GetShardIterator Text
- getShardIterator_shardId :: Lens' GetShardIterator Text
- getShardIterator_shardIteratorType :: Lens' GetShardIterator ShardIteratorType
- data GetShardIteratorResponse = GetShardIteratorResponse' {
- shardIterator :: Maybe Text
- httpStatus :: Int
- newGetShardIteratorResponse :: Int -> GetShardIteratorResponse
- getShardIteratorResponse_shardIterator :: Lens' GetShardIteratorResponse (Maybe Text)
- getShardIteratorResponse_httpStatus :: Lens' GetShardIteratorResponse Int
Creating a Request
data GetShardIterator Source #
Represents the input of a GetShardIterator operation.
See: newGetShardIterator smart constructor.
Constructors
| GetShardIterator' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> ShardIteratorType | |
| -> GetShardIterator |
Create a value of GetShardIterator with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
GetShardIterator, getShardIterator_sequenceNumber - The sequence number of a stream record in the shard from which to start
reading.
GetShardIterator, getShardIterator_streamArn - The Amazon Resource Name (ARN) for the stream.
GetShardIterator, getShardIterator_shardId - The identifier of the shard. The iterator will be returned for this
shard ID.
$sel:shardIteratorType:GetShardIterator', getShardIterator_shardIteratorType - Determines how the shard iterator is used to start reading stream
records from the shard:
AT_SEQUENCE_NUMBER- Start reading exactly from the position denoted by a specific sequence number.AFTER_SEQUENCE_NUMBER- Start reading right after the position denoted by a specific sequence number.TRIM_HORIZON- Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream.LATEST- Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.
Request Lenses
getShardIterator_sequenceNumber :: Lens' GetShardIterator (Maybe Text) Source #
The sequence number of a stream record in the shard from which to start reading.
getShardIterator_streamArn :: Lens' GetShardIterator Text Source #
The Amazon Resource Name (ARN) for the stream.
getShardIterator_shardId :: Lens' GetShardIterator Text Source #
The identifier of the shard. The iterator will be returned for this shard ID.
getShardIterator_shardIteratorType :: Lens' GetShardIterator ShardIteratorType Source #
Determines how the shard iterator is used to start reading stream records from the shard:
AT_SEQUENCE_NUMBER- Start reading exactly from the position denoted by a specific sequence number.AFTER_SEQUENCE_NUMBER- Start reading right after the position denoted by a specific sequence number.TRIM_HORIZON- Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream.LATEST- Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.
Destructuring the Response
data GetShardIteratorResponse Source #
Represents the output of a GetShardIterator operation.
See: newGetShardIteratorResponse smart constructor.
Constructors
| GetShardIteratorResponse' | |
Fields
| |
Instances
newGetShardIteratorResponse Source #
Create a value of GetShardIteratorResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:shardIterator:GetShardIteratorResponse', getShardIteratorResponse_shardIterator - The 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.
$sel:httpStatus:GetShardIteratorResponse', getShardIteratorResponse_httpStatus - The response's http status code.
Response Lenses
getShardIteratorResponse_shardIterator :: Lens' GetShardIteratorResponse (Maybe Text) Source #
The 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.
getShardIteratorResponse_httpStatus :: Lens' GetShardIteratorResponse Int Source #
The response's http status code.