pub struct S3InputConfig {
pub aws_access_key_id: Option<String>,
pub aws_secret_access_key: Option<String>,
pub no_sign_request: bool,
pub key: Option<String>,
pub prefix: Option<String>,
pub region: String,
pub bucket_name: String,
pub endpoint_url: Option<String>,
pub max_concurrent_fetches: u32,
pub max_retries: u32,
}Expand description
Configuration for reading data from AWS S3.
Fields§
§aws_access_key_id: Option<String>AWS Access Key id. This property must be specified unless no_sign_request is set to true.
aws_secret_access_key: Option<String>Secret Access Key. This property must be specified unless no_sign_request is set to true.
no_sign_request: boolDo not sign requests. This is equivalent to the --no-sign-request flag in the AWS CLI.
key: Option<String>Read a single object specified by a key.
prefix: Option<String>Read all objects whose keys match a prefix. Set to an empty string to read all objects in the bucket.
region: StringAWS region.
bucket_name: StringS3 bucket name to access.
endpoint_url: Option<String>The endpoint URL used to communicate with this service. Can be used to make this connector talk to non-AWS services with an S3 API.
max_concurrent_fetches: u32Controls the number of S3 objects fetched in parallel.
Increasing this value can improve throughput by enabling greater concurrency. However, higher concurrency may lead to timeouts or increased memory usage due to in-memory buffering.
Recommended range: 1–10. Default: 8.
max_retries: u32Retry max_retries times with exponential backoff.
If the object changes during a retry attempt, the remaining part of the object will not be processed.
Recommended range: 3-10. Default: 5.
Trait Implementations§
Source§impl Clone for S3InputConfig
impl Clone for S3InputConfig
Source§fn clone(&self) -> S3InputConfig
fn clone(&self) -> S3InputConfig
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 S3InputConfig
impl Debug for S3InputConfig
Source§impl<'de> Deserialize<'de> for S3InputConfig
impl<'de> Deserialize<'de> for S3InputConfig
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>,
Source§impl PartialEq for S3InputConfig
impl PartialEq for S3InputConfig
Source§fn eq(&self, other: &S3InputConfig) -> bool
fn eq(&self, other: &S3InputConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for S3InputConfig
impl Serialize for S3InputConfig
Source§impl<'__s> ToSchema<'__s> for S3InputConfig
impl<'__s> ToSchema<'__s> for S3InputConfig
impl Eq for S3InputConfig
impl StructuralPartialEq for S3InputConfig
Auto Trait Implementations§
impl Freeze for S3InputConfig
impl RefUnwindSafe for S3InputConfig
impl Send for S3InputConfig
impl Sync for S3InputConfig
impl Unpin for S3InputConfig
impl UnsafeUnpin for S3InputConfig
impl UnwindSafe for S3InputConfig
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,
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.