AWS4S is the AWS SDK wrapper for Scala.
- aws4s-core
- aws4s-dynamodb
- aws4s-sqs
- aws4s-s3
- aws4s-cfn
- aws4s-sts
Add the following to your sbt build (Scala 2.10.x, and Scala 2.11.x):
resolvers += "Sonatype OSS Release Repository" at "https://oss.sonatype.org/content/repositories/releases/"
libraryDependencies += "org.sisioh" %% "aws4s" % "1.0.13"
resolvers += "Sonatype OSS Snapshot Repository" at "https://oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies += "org.sisioh" %% "aws4s" % "1.0.14-SNAPSHOT"
val client = AmazonS3ClientFactory.create()
val request = GetObjectRequestFactory.create("bucket", "key")
client.getObjectAsTry(getObjectRequest).map{ result =>
result.objectMetadata.rawMetadata // as scala.collection.Map[String, AnyRef]
}.foreach(println)