https://github.com/scalajs-io/aws-s3
AWS SDK for JavaScript
https://github.com/scalajs-io/aws-s3
Last synced: 4 months ago
JSON representation
AWS SDK for JavaScript
- Host: GitHub
- URL: https://github.com/scalajs-io/aws-s3
- Owner: scalajs-io
- License: apache-2.0
- Created: 2017-03-31T11:52:50.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-17T23:07:05.000Z (about 6 years ago)
- Last Synced: 2025-01-17T22:42:55.881Z (5 months ago)
- Language: Scala
- Size: 30.3 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
aws-s3 API for Scala.js
================================
[aws-s3](https://www.npmjs.com/package/aws-s3) - AWS-S3 binding for Scala.js.### Description
An AWS-S3 binding for Scala.js.
### Build Dependencies
* [SBT v1.2.x](http://www.scala-sbt.org/download.html)
### Build/publish the SDK locally
```bash
$ sbt clean publish-local
```### Running the tests
Before running the tests the first time, you must ensure the npm packages are installed:
```bash
$ npm install
```Then you can run the tests:
```bash
$ sbt test
```### Examples
```scala
import io.scalajs.nodejs._
import io.scalajs.npm.aws._
import io.scalajs.npm.aws.s3._val s3 = new S3(ClientConfiguration(
accessKeyId = "[YOUR PUBLIC ACCESS KEY]",
secretAccessKey = "[YOUR SECRET ACCESS KEY]",
region = "us-west-1"
))val params = new BucketParams(Bucket = "test-bucket")
s3.getBucketLocation(params, (err, data) => {
if (err != null) console.log(err, err.stack)
else console.log(data)
})
```### Artifacts and Resolvers
To add the `aws-s3` binding to your project, add the following to your build.sbt:
```sbt
libraryDependencies += "io.scalajs.npm" %%% "aws-s3" % "0.5.0"
```Optionally, you may add the Sonatype Repository resolver:
```sbt
resolvers += Resolver.sonatypeRepo("releases")
```