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
Documentation
An object that represents the details of the consumer you registered. This type of object is returned by RegisterStreamConsumer.
See: newConsumer
smart constructor.
Consumer' | |
|
Instances
Eq Consumer Source # | |
Read Consumer Source # | |
Show Consumer Source # | |
Generic Consumer Source # | |
NFData Consumer Source # | |
Defined in Amazonka.Kinesis.Types.Consumer | |
Hashable Consumer Source # | |
Defined in Amazonka.Kinesis.Types.Consumer | |
FromJSON Consumer Source # | |
type Rep Consumer Source # | |
Defined in Amazonka.Kinesis.Types.Consumer type Rep Consumer = D1 ('MetaData "Consumer" "Amazonka.Kinesis.Types.Consumer" "libZSservicesZSamazonka-kinesisZSamazonka-kinesis" 'False) (C1 ('MetaCons "Consumer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "consumerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "consumerARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "consumerStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ConsumerStatus) :*: S1 ('MetaSel ('Just "consumerCreationTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX)))) |
:: Text | |
-> Text | |
-> ConsumerStatus | |
-> UTCTime | |
-> Consumer |
Create a value of Consumer
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:consumerName:Consumer'
, consumer_consumerName
- The name of the consumer is something you choose when you register the
consumer.
$sel:consumerARN:Consumer'
, consumer_consumerARN
- When you register a consumer, Kinesis Data Streams generates an ARN for
it. You need this ARN to be able to call SubscribeToShard.
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
$sel:consumerStatus:Consumer'
, consumer_consumerStatus
- A consumer can't read data while in the CREATING
or DELETING
states.
$sel:consumerCreationTimestamp:Consumer'
, consumer_consumerCreationTimestamp
-
consumer_consumerName :: Lens' Consumer Text Source #
The name of the consumer is something you choose when you register the consumer.
consumer_consumerARN :: Lens' Consumer Text Source #
When you register a consumer, Kinesis Data Streams generates an ARN for it. You need this ARN to be able to call SubscribeToShard.
If you delete a consumer and then create a new one with the same name, it won't have the same ARN. That's because consumer ARNs contain the creation timestamp. This is important to keep in mind if you have IAM policies that reference consumer ARNs.
consumer_consumerStatus :: Lens' Consumer ConsumerStatus Source #
A consumer can't read data while in the CREATING
or DELETING
states.