pub struct DynamoDBWriterConfig {
pub table: String,
pub region: String,
pub endpoint_url: Option<String>,
pub aws_access_key_id: Option<String>,
pub aws_secret_access_key: Option<String>,
pub batch_size: Option<usize>,
pub write_mode: DynamoDBWriteMode,
pub max_buffer_size_bytes: usize,
pub max_concurrent_requests: usize,
pub threads: usize,
pub max_retries: Option<u8>,
}Expand description
DynamoDB output connector configuration.
Fields§
§table: StringName of the DynamoDB table to write to.
region: StringAWS region.
endpoint_url: Option<String>Optional endpoint URL, for example when using a local DynamoDB-compatible service.
aws_access_key_id: Option<String>AWS access key ID.
If both aws_access_key_id and aws_secret_access_key are specified,
the connector uses these static credentials. Otherwise it uses the
default AWS credential provider chain, including IAM Roles for Service
Accounts (IRSA) in EKS.
Static credentials are treated as long-lived IAM keys: no session token is sent, so STS-issued temporary credentials are not supported via these fields. To use temporary credentials, rely on the default provider chain instead (leave these unset).
aws_secret_access_key: Option<String>AWS secret access key.
batch_size: Option<usize>Maximum number of write requests in one DynamoDB write call.
DynamoDB supports at most 100 for TransactWriteItems and at most 25
for BatchWriteItem. If omitted, the connector uses the maximum for
the selected write_mode.
write_mode: DynamoDBWriteModeWrite API to use when flushing records at batch end.
The default is batch, where each worker bulk-writes its own split
using DynamoDB BatchWriteItem.
max_buffer_size_bytes: usizeMaximum number of bytes buffered by each worker before flushing writes.
This is an approximate size based on encoded DynamoDB attributes.
max_concurrent_requests: usizeMaximum number of DynamoDB write requests in flight per worker thread.
The total in-flight request count across the connector is
threads × max_concurrent_requests. Size this accordingly when
tuning against a provisioned-throughput table to avoid excessive
throttling.
threads: usizeNumber of worker threads used to encode and write disjoint key ranges.
max_retries: Option<u8>Maximum number of retries for a failed or partially-applied DynamoDB write chunk.
For batch writes, BatchWriteItem may return some items as “unprocessed” in a
successful 200 response; those are re-submitted and counted as retries. For
transactional writes, a failed TransactWriteItems call is retried in full.
Transient errors (throttling, network failures) are first handled transparently by the AWS SDK. Only attempts that reach this connector’s retry loop count against this limit. Each retry waits longer than the previous one (exponential backoff), up to a ceiling of roughly 13 seconds.
Set to null to retry indefinitely. After the backoff ceiling is reached the connector
keeps retrying at that interval, providing backpressure until DynamoDB recovers.
Defaults to 10.
Implementations§
Trait Implementations§
Source§impl Clone for DynamoDBWriterConfig
impl Clone for DynamoDBWriterConfig
Source§fn clone(&self) -> DynamoDBWriterConfig
fn clone(&self) -> DynamoDBWriterConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DynamoDBWriterConfig
impl Debug for DynamoDBWriterConfig
Source§impl<'de> Deserialize<'de> for DynamoDBWriterConfig
impl<'de> Deserialize<'de> for DynamoDBWriterConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DynamoDBWriterConfig
Source§impl PartialEq for DynamoDBWriterConfig
impl PartialEq for DynamoDBWriterConfig
Source§fn eq(&self, other: &DynamoDBWriterConfig) -> bool
fn eq(&self, other: &DynamoDBWriterConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for DynamoDBWriterConfig
impl Serialize for DynamoDBWriterConfig
impl StructuralPartialEq for DynamoDBWriterConfig
Auto Trait Implementations§
impl Freeze for DynamoDBWriterConfig
impl RefUnwindSafe for DynamoDBWriterConfig
impl Send for DynamoDBWriterConfig
impl Sync for DynamoDBWriterConfig
impl Unpin for DynamoDBWriterConfig
impl UnsafeUnpin for DynamoDBWriterConfig
impl UnwindSafe for DynamoDBWriterConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.