Skip to content

scalajs-io/aws-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-s3 API for Scala.js

aws-s3 - AWS-S3 binding for Scala.js.

Description

An AWS-S3 binding for Scala.js.

Build Dependencies

Build/publish the SDK locally

 $ sbt clean publish-local

Running the tests

Before running the tests the first time, you must ensure the npm packages are installed:

$ npm install

Then you can run the tests:

$ sbt test

Examples

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:

libraryDependencies += "io.scalajs.npm" %%% "aws-s3" % "0.5.0"

Optionally, you may add the Sonatype Repository resolver:

resolvers += Resolver.sonatypeRepo("releases") 

About

AWS SDK for JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages