Skip to content

gitter-badger/aws-kinesis-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-kinesis-scala

Scala client for Amazon Kinesis

How to use

Add a following dependency into your build.sbt at first.

libraryDependencies += "jp.co.bizreach" %% "aws-kinesis-scala" % "0.0.1"

Then you can access Kinesis as following:

import jp.co.bizreach.kinesis._
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider

val credentialsProvider = new ClasspathPropertiesFileCredentialsProvider()
val kinesisClient = AmazonKinesisClient(credentialsProvider)

val putRecordRequest = new PutRecordRequest(
  streamName   = "streamName",
  partitionKey = "partitionKey",
  data         = "data".getBytes("UTF-8")
)

kinesisClient.putRecord(putRecordRequest)

About

Scala client for Amazon Kinesis

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages