I have a table (users
) in Amazon DynamoDB with items like this:
{
id: "ef1e44bc-03ad-11e9-8eb2-f2801f1b9fd1", // UUID, HASH key
version: "3.1", // Version string, conforming to semver standards
emailsEnabled: true, // Boolean flag
capabilities: { // Big nested object, not important for the question
…
}
}
I want to run an ad-hoc scan to tell how many users with version 3.1 have emails enabled. I don't have any indexes here for this table but it's ok to do a scan.
How do I do that with AWS SDK for Java 2.x?