Skip to content

Conversation

@plastic-karma
Copy link
Contributor

Copy link
Contributor

@tebanieo tebanieo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry it took me so long to review this code. Can you please match the read operations with the ids that you wrote? instead of using YourPrimaryKeyValue can you use the 1234 and 1235 examples you wrote in the operations? I started commenting on the individuals but I realized it was the same across the examples.

val tableName = "YourTableName"
val keys =
listOf(
mapOf("PrimaryKey" to AttributeValue.S("YourPrimaryKeyValue1")),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is nice if you match the PrimaryKeyValue1 and PrimaryKeyValue2 to the examples 1234 and 1235 that you created with the Write operations, just for uniformity.

For a new user it will also help on the understanding.


suspend fun main() {
val tableName = "YourTableName"
val key = mapOf("PrimaryKey" to AttributeValue.S("YourPrimaryKeyValue"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment than the BatchGetItem.kt file, please match with the ids that are written.

@plastic-karma
Copy link
Contributor Author

@tebanieo Apologies that this took forever (had a kid in the meantime :-) ). I made the changes you requested

@tebanieo tebanieo merged commit f4e0cdf into aws-samples:master Jun 10, 2025
tebanieo added a commit to tebanieo/aws-dynamodb-examples that referenced this pull request Aug 20, 2025
feat: adding Kotlin examples for Working with Items
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants