Announcing the Developer Preview of DynamoDB Mapper for Kotlin
Announcing the Developer Preview of DynamoDB Mapper for Kotlin
Author: Ian Botsford
Published on: 2024-10-30 14:40:44
Source: AWS Developer Tools Blog
Disclaimer:All rights are owned by the respective creators. No copyright infringement is intended.
We’re excited to announce the Developer Preview of DynamoDB Mapper for Kotlin. This high-level library provides streamlined, idiomatic ways for developers to map data between their business logic written in Kotlin and their tables in DynamoDB. DynamoDB Mapper works with most Kotlin data classes right out of the box and also offers powerful features for modeling data flexibly and handling more complex schemas. DynamoDB Mapper is part of the AWS SDK for Kotlin and will be released on the same daily schedule as other SDK components.
You can test out this new feature by using the DynamoDB Mapper Schema Generator plugin for Gradle and annotating your data classes:
The preceding code sample will automatically generate item schemas at build time. These schemas may then be used to access DynamoDB table items as Planet
instances as shown in the following code:
Preview functionality
This DynamoDB Mapper is being released as a Developer Preview, meaning it is not yet feature complete, may contain bugs, and is not suitable for production workloads. The goal of this Developer Preview is to gather early feedback from eager adopters, which may lead to redesigns and backwards-incompatible changes. See the AWS SDKs and Tools maintenance policy for more details on product lifecycle.
The initial Developer Preview supports the following DynamoDB operations:
deleteItem
getItem
putItem
queryPaginated
scanPaginated
It also supports the following types of DynamoDB expressions:
- Filter expressions
- Key condition expressions
Support for more operations such as updateItem
and createTable
, along with support for more types of expressions such as update expressions and projection expressions, will be added before DynamoDB Mapper exits Developer Preview.
Next steps
To get started with the DynamoDB Mapper for Kotlin, check out the following links:
Let us know how this new feature works for you and whether it meets your needs. If you are curious about something, post or join a discussion in our GitHub repo. If you’ve found a bug, please file an issue in our GitHub repo.
About the author:
Disclaimer: All rights are owned by the respective creators. No copyright infringement is intended.