All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.lambda.event.CognitoEvent.scala Maven / Gradle / Ivy

The newest version!
package zio.lambda.event

import zio.json._

final case class CognitoEvent(
  region: String,
  datasetRecords: Map[String, CognitoDatasetRecord],
  identityPoolId: String,
  identityId: String,
  datasetName: String,
  eventType: String,
  version: Int
)

object CognitoEvent {
  implicit val decoder: JsonDecoder[CognitoEvent] = DeriveJsonDecoder.gen[CognitoEvent]
}

final case class CognitoDatasetRecord(
  oldValue: String,
  newValue: String,
  op: String
)
object CognitoDatasetRecord {
  implicit val decoder: JsonDecoder[CognitoDatasetRecord] = DeriveJsonDecoder.gen[CognitoDatasetRecord]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy