This is an active maintained fork from dwhjames/aws-wrap since it is unmaintained.
Asynchronous clients are provided for the following services:
- DynamoDB
- CloudWatch
- Simple Storage Service (S3)
- Simple Email Service (SES)
- SimpleDB
- Simple Notification Service (SNS)
- Simple Queue Service (SQS)
- Kinesis
- Kinesis Firehose
- KMS
aws-wrap is built for Scala 2.10.x, 2.11.x and 2.12.x against AWS Java SDK 1.11.x (for AWS Java SDK 1.10.x, 1.9.x and 1.8.x series we recommend you upgrade before using this library). Binary releases are available from Bintray.
If you are using SBT, simply add the following to your build.sbt
file:
resolvers += Resolver.bintrayRepo("mingchuno", "maven")
libraryDependencies += "com.github.dwhjames" %% "aws-wrap" % "0.12.1"
Basically this libary is a thin wrap around official AWS Java SDK. Take SNS as an example
val javaClient = new AmazonSNSAsyncClient() // AWS Java Client
val scalaClient = new AmazonSNSScalaClient(javaClient)
val request = new CreateTopicRequest("topic_name") // good old AWS request type
val result: Future[CreateTopicResult] = scalaClient.createTopic(request) // It return a future
val result2: Future[CreateTopicResult] = scalaClient.createTopic("topic_name") // This is a shortcut
Major change will be in here for easy reference since 0.9.2.
- add KMS support (#16)
- add Kinesis and Firehose support (#15 #13)
- update AWS java SDK version and remove usage of some deprecated functions (#12)
- fix Boolean implicit conversion in Dynamo V1 and add Dynamo V2 support (#10 #11)
- cross build Scala 2.12.0
- client can now supply config on dynamodb
sbt compile test
for the core project. If you want to run the integration test bundle install && sbt awsWrapTest/it:compile && sbt awsWrapTest/it:test
Copyright © 2012-2015 Pellucid Analytics. Copyright © 2015 Daniel W. H. James. Copyright © 2016 M.C. Or.
This software is distributed under the Apache License, Version 2.0.