feldera_types/transport/
s3.rs

1use serde::{Deserialize, Serialize};
2use utoipa::ToSchema;
3
4/// Configuration for reading data from AWS S3.
5#[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize, ToSchema)]
6pub struct S3InputConfig {
7    /// AWS Access Key id. This property must be specified unless `no_sign_request` is set to `true`.
8    pub aws_access_key_id: Option<String>,
9
10    /// Secret Access Key. This property must be specified unless `no_sign_request` is set to `true`.
11    pub aws_secret_access_key: Option<String>,
12
13    /// Do not sign requests. This is equivalent to the `--no-sign-request` flag in the AWS CLI.
14    #[serde(default)]
15    pub no_sign_request: bool,
16
17    /// Read a single object specified by a key.
18    pub key: Option<String>,
19
20    /// Read all objects whose keys match a prefix. Set to an empty string to read all objects in the bucket.
21    pub prefix: Option<String>,
22
23    /// AWS region.
24    pub region: String,
25
26    /// S3 bucket name to access.
27    pub bucket_name: String,
28
29    /// The endpoint URL used to communicate with this service. Can be used to make this connector
30    /// talk to non-AWS services with an S3 API.
31    pub endpoint_url: Option<String>,
32}