pub struct S3ConnectorConfig {
pub bucket: String,
pub prefix: String,
pub region: String,
pub include_globs: Vec<String>,
pub exclude_globs: Vec<String>,
pub endpoint_url: Option<String>,
}Expand description
Amazon S3 connector configuration.
Lists and downloads objects from an S3 bucket using the REST API with
AWS Signature V4. Supports custom endpoints for S3-compatible services.
See crate::connector_s3 for the full implementation.
§Environment Variables
AWS_ACCESS_KEY_ID— requiredAWS_SECRET_ACCESS_KEY— requiredAWS_SESSION_TOKEN— optional (for temporary credentials)
§Example
[connectors.s3.runbooks]
bucket = "acme-docs"
prefix = "engineering/runbooks/"
region = "us-east-1"
include_globs = ["**/*.md"]
# endpoint_url = "http://localhost:9000" # for MinIOFields§
§bucket: StringS3 bucket name.
prefix: StringKey prefix to filter objects. Default: "" (entire bucket).
region: StringAWS region. Default: "us-east-1".
include_globs: Vec<String>Glob patterns for object keys to include. Default: ["**/*.md", "**/*.txt"].
exclude_globs: Vec<String>Glob patterns for object keys to exclude. Default: [].
endpoint_url: Option<String>Custom endpoint URL for S3-compatible services (MinIO, LocalStack).
Trait Implementations§
Source§impl Clone for S3ConnectorConfig
impl Clone for S3ConnectorConfig
Source§fn clone(&self) -> S3ConnectorConfig
fn clone(&self) -> S3ConnectorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for S3ConnectorConfig
impl Debug for S3ConnectorConfig
Source§impl<'de> Deserialize<'de> for S3ConnectorConfig
impl<'de> Deserialize<'de> for S3ConnectorConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for S3ConnectorConfig
impl RefUnwindSafe for S3ConnectorConfig
impl Send for S3ConnectorConfig
impl Sync for S3ConnectorConfig
impl Unpin for S3ConnectorConfig
impl UnwindSafe for S3ConnectorConfig
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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