Skip to content

Instantly share code, notes, and snippets.

@oharaandrew314
Last active March 30, 2022 02:20
Show Gist options
  • Select an option

  • Save oharaandrew314/65f65fba653f73aeb77796c04a9ed92b to your computer and use it in GitHub Desktop.

Select an option

Save oharaandrew314/65f65fba653f73aeb77796c04a9ed92b to your computer and use it in GitHub Desktop.
dynamodb-v2-kotlin-cat-new
data class DynamoCat(
@DynamoKtPartitionKey
val ownerId: Int,
@DynamoKtSortKey
@DynamoKtSecondaryPartitionKey(indexNames = ["names"])
val name: String,
val gender: String,
val features: List<String>
)
val schema = DataClassTableSchema(DynamoCat::class)
val table = DynamoDbEnhancedClient.create().table("cat", schema)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment