0
我正在關注Scalazon示例here以創建Kinesis流。下面的代碼:問題使用Scalazon創建Kinesis流
val streamListFuture = for {
s <- Kinesis.streams.list
} yield s
提供了以下錯誤:
[error] KinesisStatsWriter.scala:51: value map is not a member of object io.github.cloudify.scala.aws.kinesis.Requests.ListStreams
[error] s <- Kinesis.streams.list
如果我不使用的理解,並呼籲val createStream = Kinesis.streams.list
,沒有錯誤。似乎無法弄清楚爲什麼。
同樣,下面的代碼位:
val createStream = for {
s <- Kinesis.streams.create(name)
} yield s
產生類似的錯誤:
[error] KinesisStatsWriter.scala:64: value map is not a member of io.github.cloudify.scala.aws.kinesis.Requests.CreateStream
[error] s <- Kinesis.streams.create(name)
感謝幫助!