Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Synopsis
- data SubscribeToShardEvent = SubscribeToShardEvent' {}
- newSubscribeToShardEvent :: Text -> Natural -> SubscribeToShardEvent
- subscribeToShardEvent_childShards :: Lens' SubscribeToShardEvent (Maybe [ChildShard])
- subscribeToShardEvent_records :: Lens' SubscribeToShardEvent [Record]
- subscribeToShardEvent_continuationSequenceNumber :: Lens' SubscribeToShardEvent Text
- subscribeToShardEvent_millisBehindLatest :: Lens' SubscribeToShardEvent Natural
Documentation
data SubscribeToShardEvent Source #
After you call SubscribeToShard, Kinesis Data Streams sends events of this type over an HTTP/2 connection to your consumer.
See: newSubscribeToShardEvent
smart constructor.
SubscribeToShardEvent' | |
|
Instances
newSubscribeToShardEvent Source #
:: Text | |
-> Natural | |
-> SubscribeToShardEvent |
Create a value of SubscribeToShardEvent
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:childShards:SubscribeToShardEvent'
, subscribeToShardEvent_childShards
- Undocumented member.
$sel:records:SubscribeToShardEvent'
, subscribeToShardEvent_records
-
$sel:continuationSequenceNumber:SubscribeToShardEvent'
, subscribeToShardEvent_continuationSequenceNumber
- Use this as SequenceNumber
in the next call to SubscribeToShard, with
StartingPosition
set to AT_SEQUENCE_NUMBER
or
AFTER_SEQUENCE_NUMBER
. Use ContinuationSequenceNumber
for
checkpointing because it captures your shard progress even when no data
is written to the shard.
$sel:millisBehindLatest:SubscribeToShardEvent'
, subscribeToShardEvent_millisBehindLatest
- The number of milliseconds the read records are from the tip of the
stream, indicating how far behind current time the consumer is. A value
of zero indicates that record processing is caught up, and there are no
new records to process at this moment.
subscribeToShardEvent_childShards :: Lens' SubscribeToShardEvent (Maybe [ChildShard]) Source #
Undocumented member.
subscribeToShardEvent_continuationSequenceNumber :: Lens' SubscribeToShardEvent Text Source #
Use this as SequenceNumber
in the next call to SubscribeToShard, with
StartingPosition
set to AT_SEQUENCE_NUMBER
or
AFTER_SEQUENCE_NUMBER
. Use ContinuationSequenceNumber
for
checkpointing because it captures your shard progress even when no data
is written to the shard.
subscribeToShardEvent_millisBehindLatest :: Lens' SubscribeToShardEvent Natural Source #
The number of milliseconds the read records are from the tip of the stream, indicating how far behind current time the consumer is. A value of zero indicates that record processing is caught up, and there are no new records to process at this moment.