S3 Handler
Amazon S3 is a cloud storage service on AWS that lets you store different types of files, like photos, audio, and videos, as objects. It offers high scalability and security, making it easy to store and access any amount of data from anywhere, anytime. S3 also provides features like high availability, strong security, and smooth integration with other AWS services.
Example
To create the AWSHandler object creation with the aws credentials. The AWSS3Handler connects to an Amazon S3 bucket using access credentials (access key, secret key) and specifies a region and bucket name. It enables seamless interaction with S3 for tasks like uploading, downloading, and managing files.
File Upload:
The upload_file method accepts a file name and an object name.
List Bucket:
Returns a list of all buckets owned by the authenticated sender of the request.
Download File:
The download_file method accepts the names of the bucket and object to download and the filename to save the file to.