Struct aws_sdk_kinesis::model::ConsumerDescription
source · #[non_exhaustive]pub struct ConsumerDescription { /* private fields */ }
Expand description
An object that represents the details of a registered consumer. This type of object is returned by DescribeStreamConsumer
.
Implementations§
source§impl ConsumerDescription
impl ConsumerDescription
sourcepub fn consumer_name(&self) -> Option<&str>
pub fn consumer_name(&self) -> Option<&str>
The name of the consumer is something you choose when you register the consumer.
sourcepub fn consumer_arn(&self) -> Option<&str>
pub fn consumer_arn(&self) -> Option<&str>
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.
sourcepub fn consumer_status(&self) -> Option<&ConsumerStatus>
pub fn consumer_status(&self) -> Option<&ConsumerStatus>
A consumer can't read data while in the CREATING
or DELETING
states.
sourcepub fn consumer_creation_timestamp(&self) -> Option<&DateTime>
pub fn consumer_creation_timestamp(&self) -> Option<&DateTime>
sourcepub fn stream_arn(&self) -> Option<&str>
pub fn stream_arn(&self) -> Option<&str>
The ARN of the stream with which you registered the consumer.
source§impl ConsumerDescription
impl ConsumerDescription
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ConsumerDescription
.
Trait Implementations§
source§impl Clone for ConsumerDescription
impl Clone for ConsumerDescription
source§fn clone(&self) -> ConsumerDescription
fn clone(&self) -> ConsumerDescription
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConsumerDescription
impl Debug for ConsumerDescription
source§impl PartialEq<ConsumerDescription> for ConsumerDescription
impl PartialEq<ConsumerDescription> for ConsumerDescription
source§fn eq(&self, other: &ConsumerDescription) -> bool
fn eq(&self, other: &ConsumerDescription) -> bool
self
and other
values to be equal, and is used
by ==
.