Crate s3

Crate s3 

Source
Expand description

Simple access to Amazon Web Service’s (AWS) Simple Storage Service (S3)

Re-exports§

pub use bucket::Bucket;
pub use bucket::Tag;
pub use bucket_ops::BucketConfiguration;
pub use post_policy::PostPolicy;
pub use post_policy::PostPolicyChecksum;
pub use post_policy::PostPolicyField;
pub use post_policy::PostPolicyValue;
pub use put_object_request::PutObjectRequest;
pub use put_object_request::PutObjectStreamRequest;
pub use awscreds as creds;
pub use awsregion as region;

Modules§

bucket
Rust S3 Bucket Operations
bucket_ops
This module provides utilities for configuring and managing Amazon S3 buckets, focusing on access control, bucket configuration, and handling responses from the S3 service. It includes structures for defining bucket access policies (both canned and custom), configuring various bucket properties, and parsing responses from S3 API calls like ListBuckets.
command
This module defines and manages various commands used for interacting with Amazon S3, encapsulating common operations such as creating buckets, uploading objects, and managing multipart uploads. It also provides utilities for calculating necessary metadata (like content length and SHA-256 hashes) required for secure and efficient communication with the S3 service.
deserializer
error
post_policy
This module provides functionality for creating and managing S3 POST policies, which are used to generate presigned URLs for securely uploading files to S3 with specific conditions and metadata. It handles the generation of necessary conditions, expiration policies, and signing of the POST policy.
put_object_request
Builder pattern for S3 PUT operations with customizable options
request
serde_types
signing
Implementation of AWS V4 Signing
utils

Macros§

retry
Retries a given expression a specified number of times with exponential backoff.

Enums§

Region
AWS S3 region identifier, passing in custom values is also possible, in that case it is up to you to pass a valid endpoint, otherwise boom will happen :)

Functions§

get_retries
Retrieves the current number of retries set for operations.
set_retries
Sets the number of retries for operations that may fail and need to be retried.