#[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: StringDetermines 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 ==.impl StructuralPartialEq for PipeTargetKinesisStreamParameters
Auto Trait Implementations§
impl Freeze for PipeTargetKinesisStreamParameters
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more