dave
03/24/2021, 10:09 PMv2.18.0.0
is now winging it's way to MavenCentral as I type.
Loosely translated - we've managed to apply the http4k lens system to DynamoDB table fields, so you don't have to worry about marshalling the types in and out of the record fields. So you can do something like this:
val attrNums = Attribute.ints().required("ints")
val attrI = Attribute.instant().optional("instant")
val item = dyanmo.getItem(table, Item(attrNums of setOf(123, 456))).successValue().item!!
val s: Set<String> = attrNums(item)
val i: Instant? = attrI(item)
In all, http4k-connect now supplies featherweight http4k-friendly adapters (and almost all fakes) for the following AWS services: DynamoDb, KMS, Lambda, S3, SecretsManager, SNS, SQS, STS, SSM.