#[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() -> PipeTargetKinesisStreamParametersBuilder
pub fn builder() -> PipeTargetKinesisStreamParametersBuilder
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 ==
.impl StructuralPartialEq for PipeTargetKinesisStreamParameters
Auto Trait Implementations§
impl RefUnwindSafe for PipeTargetKinesisStreamParameters
impl Send for PipeTargetKinesisStreamParameters
impl Sync for PipeTargetKinesisStreamParameters
impl Unpin for PipeTargetKinesisStreamParameters
impl UnwindSafe for PipeTargetKinesisStreamParameters
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more