libZSservicesZSamazonka-kinesisZSamazonka-kinesis
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Kinesis.Types.SubscribeToShardEvent

Description

 
Synopsis

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.

Constructors

SubscribeToShardEvent' 

Fields

  • childShards :: Maybe [ChildShard]
     
  • records :: [Record]
     
  • continuationSequenceNumber :: Text

    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.

  • millisBehindLatest :: Natural

    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.

Instances

Instances details
Eq SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

Read SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

Show SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

Generic SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

Associated Types

type Rep SubscribeToShardEvent :: Type -> Type #

NFData SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

Methods

rnf :: SubscribeToShardEvent -> () #

Hashable SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

FromJSON SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

type Rep SubscribeToShardEvent Source # 
Instance details

Defined in Amazonka.Kinesis.Types.SubscribeToShardEvent

type Rep SubscribeToShardEvent = D1 ('MetaData "SubscribeToShardEvent" "Amazonka.Kinesis.Types.SubscribeToShardEvent" "libZSservicesZSamazonka-kinesisZSamazonka-kinesis" 'False) (C1 ('MetaCons "SubscribeToShardEvent'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "childShards") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ChildShard])) :*: S1 ('MetaSel ('Just "records") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Record])) :*: (S1 ('MetaSel ('Just "continuationSequenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "millisBehindLatest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural))))

newSubscribeToShardEvent Source #

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_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.