The Amazon Simple Storage Service (Amazon S3) is an object storage service offered by Amazon Web Services. The AWS SDK for JavaScript provides the ability to interact with Amazon S3 from JavaScript applications running on various platforms.
Features
- Create Buckets: Store and retrieve objects in S3 buckets.
- Upload and Download Files: Upload files to S3 and download them from S3.
- Manage Access Control: Set access permissions and policies for S3 resources.
- Versioning: Enable versioning to manage and recover previous versions of objects.
Usage
Here is an example of how to create a bucket using the AWS SDK for JavaScript:
const AWS = require('aws-sdk');
const s3 = new AWS.S3();
const params = {
Bucket: 'your-bucket-name',
};
s3.createBucket(params, function(err, data) {
if (err) console.log(err, err.stack);
else console.log(data);
});
Resources
For more information on the AWS SDK for JavaScript and Amazon S3, please refer to the following resources:
Learn More
To explore more about AWS SDK for JavaScript, check out the following AWS SDK for JavaScript API Reference.
<center><img src="https://cloud-image.ullrai.com/q/Amazon_S3_icon/" alt="Amazon S3 Icon"/></center>