#[non_exhaustive]pub struct PipeTargetKinesisStreamParameters { /* private fields */ }
Expand description
The parameters for using a Kinesis stream as a source.
Implementations§
source§impl PipeTargetKinesisStreamParameters
impl PipeTargetKinesisStreamParameters
sourcepub fn partition_key(&self) -> Option<&str>
pub fn partition_key(&self) -> Option<&str>
Determines which shard in the stream the data record is assigned to. Partition keys are Unicode strings with a maximum length limit of 256 characters for each key. Amazon Kinesis Data Streams uses the partition key as input to a hash function that maps the partition key and associated data to a specific shard. Specifically, an MD5 hash function is used to map partition keys to 128-bit integer values and to map associated data records to shards. As a result of this hashing mechanism, all data records with the same partition key map to the same shard within the stream.
source§impl PipeTargetKinesisStreamParameters
impl PipeTargetKinesisStreamParameters
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PipeTargetKinesisStreamParameters
.
Trait Implementations§
source§impl Clone for PipeTargetKinesisStreamParameters
impl Clone for PipeTargetKinesisStreamParameters
source§fn clone(&self) -> PipeTargetKinesisStreamParameters
fn clone(&self) -> PipeTargetKinesisStreamParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq<PipeTargetKinesisStreamParameters> for PipeTargetKinesisStreamParameters
impl PartialEq<PipeTargetKinesisStreamParameters> for PipeTargetKinesisStreamParameters
source§fn eq(&self, other: &PipeTargetKinesisStreamParameters) -> bool
fn eq(&self, other: &PipeTargetKinesisStreamParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.