Struct aws_sdk_kinesis::model::Consumer [−][src]
#[non_exhaustive]pub struct Consumer {
pub consumer_name: Option<String>,
pub consumer_arn: Option<String>,
pub consumer_status: Option<ConsumerStatus>,
pub consumer_creation_timestamp: Option<DateTime>,
}
Expand description
An object that represents the details of the consumer you registered. This type of object is returned by RegisterStreamConsumer.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.consumer_name: Option<String>
The name of the consumer is something you choose when you register the consumer.
consumer_arn: Option<String>
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_status: Option<ConsumerStatus>
A consumer can't read data while in the CREATING
or DELETING
states.
consumer_creation_timestamp: Option<DateTime>
Implementations
The name of the consumer is something you choose when you register the consumer.
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.
A consumer can't read data while in the CREATING
or DELETING
states.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Consumer
impl UnwindSafe for Consumer
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more