Struct aws_sdk_kinesis::model::consumer::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for Consumer
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn consumer_name(self, input: impl Into<String>) -> Self
pub fn consumer_name(self, input: impl Into<String>) -> Self
The name of the consumer is something you choose when you register the consumer.
sourcepub fn set_consumer_name(self, input: Option<String>) -> Self
pub fn set_consumer_name(self, input: Option<String>) -> Self
The name of the consumer is something you choose when you register the consumer.
sourcepub fn consumer_arn(self, input: impl Into<String>) -> Self
pub fn consumer_arn(self, input: impl Into<String>) -> Self
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 set_consumer_arn(self, input: Option<String>) -> Self
pub fn set_consumer_arn(self, input: Option<String>) -> Self
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, input: ConsumerStatus) -> Self
pub fn consumer_status(self, input: ConsumerStatus) -> Self
A consumer can't read data while in the CREATING
or DELETING
states.
sourcepub fn set_consumer_status(self, input: Option<ConsumerStatus>) -> Self
pub fn set_consumer_status(self, input: Option<ConsumerStatus>) -> Self
A consumer can't read data while in the CREATING
or DELETING
states.