pub struct S3ClientConfig { /* private fields */ }Expand description
Configurations for the CRT-based S3 client
Implementations§
Source§impl S3ClientConfig
impl S3ClientConfig
pub fn new() -> Self
Sourcepub fn auth_config(self, auth_config: S3ClientAuthConfig) -> Self
pub fn auth_config(self, auth_config: S3ClientAuthConfig) -> Self
Set the configuration for authenticating to S3
Sourcepub fn part_size(self, part_size: usize) -> Self
pub fn part_size(self, part_size: usize) -> Self
Set the part size for multi-part operations to S3 (both PUT and GET)
Sourcepub fn read_part_size(self, size: usize) -> Self
pub fn read_part_size(self, size: usize) -> Self
Set the part size for multi-part-get operations to S3.
Sourcepub fn write_part_size(self, size: usize) -> Self
pub fn write_part_size(self, size: usize) -> Self
Set the part size for multi-part-put operations to S3.
Sourcepub fn throughput_target_gbps(self, throughput_target_gbps: f64) -> Self
pub fn throughput_target_gbps(self, throughput_target_gbps: f64) -> Self
Set the target throughput in Gbps for the S3 client
Sourcepub fn memory_limit_in_bytes(self, memory_limit_in_bytes: u64) -> Self
pub fn memory_limit_in_bytes(self, memory_limit_in_bytes: u64) -> Self
Set the memory limit in bytes for the S3 client
Sourcepub fn endpoint_config(self, endpoint_config: EndpointConfig) -> Self
pub fn endpoint_config(self, endpoint_config: EndpointConfig) -> Self
Set the endpoint configuration for endpoint resolution
Sourcepub fn user_agent(self, user_agent: UserAgent) -> Self
pub fn user_agent(self, user_agent: UserAgent) -> Self
Set a constructor for the HTTP User-agent header for S3 requests
Sourcepub fn request_payer(self, request_payer: &str) -> Self
pub fn request_payer(self, request_payer: &str) -> Self
Set a value for the request payer HTTP header for S3 requests
Sourcepub fn bucket_owner(self, bucket_owner: &str) -> Self
pub fn bucket_owner(self, bucket_owner: &str) -> Self
Set an expected bucket owner value
Sourcepub fn max_attempts(self, max_attempts: NonZeroUsize) -> Self
pub fn max_attempts(self, max_attempts: NonZeroUsize) -> Self
Set a maximum number of attempts for S3 requests. Will be overridden by the
AWS_MAX_ATTEMPTS environment variable if set.
Sourcepub fn read_backpressure(self, read_backpressure: bool) -> Self
pub fn read_backpressure(self, read_backpressure: bool) -> Self
Set the flag for backpressure read
Sourcepub fn initial_read_window(self, initial_read_window: usize) -> Self
pub fn initial_read_window(self, initial_read_window: usize) -> Self
Set a value for initial backpressure read window size
Sourcepub fn network_interface_names(
self,
network_interface_names: Vec<String>,
) -> Self
pub fn network_interface_names( self, network_interface_names: Vec<String>, ) -> Self
Set a list of network interfaces to distribute S3 requests over
Sourcepub fn telemetry_callback(
self,
telemetry_callback: Arc<dyn OnTelemetry>,
) -> Self
pub fn telemetry_callback( self, telemetry_callback: Arc<dyn OnTelemetry>, ) -> Self
Set a custom telemetry callback handler
Sourcepub fn event_loop_threads(self, event_loop_threads: u16) -> Self
pub fn event_loop_threads(self, event_loop_threads: u16) -> Self
Override the number of threads used by the CRTs AwsEventLoop
Sourcepub fn memory_pool(self, pool: impl MemoryPool) -> Self
pub fn memory_pool(self, pool: impl MemoryPool) -> Self
Set a custom memory pool
Sourcepub fn memory_pool_factory(self, pool_factory: impl MemoryPoolFactory) -> Self
pub fn memory_pool_factory(self, pool_factory: impl MemoryPoolFactory) -> Self
Set a custom memory pool factory
Trait Implementations§
Source§impl Clone for S3ClientConfig
impl Clone for S3ClientConfig
Source§fn clone(&self) -> S3ClientConfig
fn clone(&self) -> S3ClientConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more