-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the AWS.Wrappers wiki! AWS Wrappers is a straightforward .NET 6 C# class library to perform basic operations AWS S3 from the .NET core application which is built on top of AWS libraries, which Amazon Web Services provide.
The AWS libraries provide all the features needed to perform operations with AWS, but they are sometimes not straight forward to use and we need to implement them in our application.
So, AWS Wrappers S3 is designed to do basic operations such as creating buckets, uploading files, creating folders, etc. with the AWS Simple Storage Services (S3) with simple, user-readable methods that already implement the codes required to perform the operation.
Clone the code from the master branch or download stable release from the release area.
You can copy the AWS.Wrappers.S3
class library into your project solution folder and add references (dependencies) to their project, then you can utilize the library.
If you prefers to have the wrapper classes in your own project, you can simply copy the necessary interfaces and classes into your projects and start working with them.
The library contains both synchronous and asynchronous methods.
Package which need to be imported,
using AWS.Wrappers.S3.Interfaces;
using AWS.Wrappers.S3.Services;
Creating S3Service Object,
IS3Service _S3Service = new S3Service("<AccessKey>", "<SecretKey>", S3Regions.USEast1);
Sample code to create bucket in AWS S3 with S3 Wappers,
In synchronous,
IS3Service S3Service = new S3Service("<AccessKey>", "<SecretKey>", S3Regions.USEast1);
S3Service.CreateBucket("<new-bucket-name>");
In asynchronous,
IS3Service S3Service = new S3Service("<AccessKey>", "<SecretKey>", S3Regions.USEast1);
await S3Service.CreateBucketAsync("<new-bucket-name>");
Please see the list of methods available in the Methods list.
You can find the version info/change log in the following links:
- Ability to run all unit tests at once
- Supports KMS
Contibution is always welcome. If you would like to contribute to this project, please contact [email protected].