#[non_exhaustive]pub struct PipeTargetKinesisStreamParameters {
pub partition_key: String,
}
Expand description
The parameters for using a Kinesis stream as a target.
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.partition_key: String
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.
Implementations§
source§impl PipeTargetKinesisStreamParameters
impl PipeTargetKinesisStreamParameters
sourcepub fn partition_key(&self) -> &str
pub fn partition_key(&self) -> &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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for PipeTargetKinesisStreamParameters
impl PartialEq for PipeTargetKinesisStreamParameters
source§fn eq(&self, other: &PipeTargetKinesisStreamParameters) -> bool
fn eq(&self, other: &PipeTargetKinesisStreamParameters) -> bool
self
and other
values to be equal, and is used
by ==
.