#[non_exhaustive]pub struct PipeSourceKinesisStreamParametersBuilder { /* private fields */ }
Expand description
A builder for PipeSourceKinesisStreamParameters
.
Implementations§
source§impl PipeSourceKinesisStreamParametersBuilder
impl PipeSourceKinesisStreamParametersBuilder
sourcepub fn batch_size(self, input: i32) -> Self
pub fn batch_size(self, input: i32) -> Self
The maximum number of records to include in each batch.
sourcepub fn set_batch_size(self, input: Option<i32>) -> Self
pub fn set_batch_size(self, input: Option<i32>) -> Self
The maximum number of records to include in each batch.
sourcepub fn dead_letter_config(self, input: DeadLetterConfig) -> Self
pub fn dead_letter_config(self, input: DeadLetterConfig) -> Self
Define the target queue to send dead-letter queue events to.
sourcepub fn set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
pub fn set_dead_letter_config(self, input: Option<DeadLetterConfig>) -> Self
Define the target queue to send dead-letter queue events to.
sourcepub fn on_partial_batch_item_failure(
self,
input: OnPartialBatchItemFailureStreams
) -> Self
pub fn on_partial_batch_item_failure( self, input: OnPartialBatchItemFailureStreams ) -> Self
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT
halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.
sourcepub fn set_on_partial_batch_item_failure(
self,
input: Option<OnPartialBatchItemFailureStreams>
) -> Self
pub fn set_on_partial_batch_item_failure( self, input: Option<OnPartialBatchItemFailureStreams> ) -> Self
(Streams only) Define how to handle item process failures. AUTOMATIC_BISECT
halves each batch and retry each half until all the records are processed or there is one failed message left in the batch.
sourcepub fn maximum_batching_window_in_seconds(self, input: i32) -> Self
pub fn maximum_batching_window_in_seconds(self, input: i32) -> Self
The maximum length of a time to wait for events.
sourcepub fn set_maximum_batching_window_in_seconds(self, input: Option<i32>) -> Self
pub fn set_maximum_batching_window_in_seconds(self, input: Option<i32>) -> Self
The maximum length of a time to wait for events.
sourcepub fn maximum_record_age_in_seconds(self, input: i32) -> Self
pub fn maximum_record_age_in_seconds(self, input: i32) -> Self
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
sourcepub fn set_maximum_record_age_in_seconds(self, input: Option<i32>) -> Self
pub fn set_maximum_record_age_in_seconds(self, input: Option<i32>) -> Self
(Streams only) Discard records older than the specified age. The default value is -1, which sets the maximum age to infinite. When the value is set to infinite, EventBridge never discards old records.
sourcepub fn maximum_retry_attempts(self, input: i32) -> Self
pub fn maximum_retry_attempts(self, input: i32) -> Self
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
sourcepub fn set_maximum_retry_attempts(self, input: Option<i32>) -> Self
pub fn set_maximum_retry_attempts(self, input: Option<i32>) -> Self
(Streams only) Discard records after the specified number of retries. The default value is -1, which sets the maximum number of retries to infinite. When MaximumRetryAttempts is infinite, EventBridge retries failed records until the record expires in the event source.
sourcepub fn parallelization_factor(self, input: i32) -> Self
pub fn parallelization_factor(self, input: i32) -> Self
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
sourcepub fn set_parallelization_factor(self, input: Option<i32>) -> Self
pub fn set_parallelization_factor(self, input: Option<i32>) -> Self
(Streams only) The number of batches to process concurrently from each shard. The default value is 1.
sourcepub fn starting_position(self, input: KinesisStreamStartPosition) -> Self
pub fn starting_position(self, input: KinesisStreamStartPosition) -> Self
(Streams only) The position in a stream from which to start reading.
sourcepub fn set_starting_position(
self,
input: Option<KinesisStreamStartPosition>
) -> Self
pub fn set_starting_position( self, input: Option<KinesisStreamStartPosition> ) -> Self
(Streams only) The position in a stream from which to start reading.
sourcepub fn starting_position_timestamp(self, input: DateTime) -> Self
pub fn starting_position_timestamp(self, input: DateTime) -> Self
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading, in Unix time seconds.
sourcepub fn set_starting_position_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_starting_position_timestamp(self, input: Option<DateTime>) -> Self
With StartingPosition
set to AT_TIMESTAMP
, the time from which to start reading, in Unix time seconds.
sourcepub fn build(self) -> PipeSourceKinesisStreamParameters
pub fn build(self) -> PipeSourceKinesisStreamParameters
Consumes the builder and constructs a PipeSourceKinesisStreamParameters
.
Trait Implementations§
source§impl Clone for PipeSourceKinesisStreamParametersBuilder
impl Clone for PipeSourceKinesisStreamParametersBuilder
source§fn clone(&self) -> PipeSourceKinesisStreamParametersBuilder
fn clone(&self) -> PipeSourceKinesisStreamParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for PipeSourceKinesisStreamParametersBuilder
impl Default for PipeSourceKinesisStreamParametersBuilder
source§fn default() -> PipeSourceKinesisStreamParametersBuilder
fn default() -> PipeSourceKinesisStreamParametersBuilder
source§impl PartialEq<PipeSourceKinesisStreamParametersBuilder> for PipeSourceKinesisStreamParametersBuilder
impl PartialEq<PipeSourceKinesisStreamParametersBuilder> for PipeSourceKinesisStreamParametersBuilder
source§fn eq(&self, other: &PipeSourceKinesisStreamParametersBuilder) -> bool
fn eq(&self, other: &PipeSourceKinesisStreamParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.