Partition key
A partition key is a type of primary key which is used by DynamoDB as input values for internal hash functions. These hash functions are further responsible for generating partitions where the data items can be stored.
The People table has a simple primary key (PersonID). You can access any item in the People table directly by providing the PersonId value for that item.
AWS DynamoDB – Primary Key
Primary keys are used for uniquely identifying each item in a table. No two-item can have the same primary key. In DynamoDB the primary key must be specified along with the table name while creating a table.
DynamoDB supports two different kinds of primary keys:
- Partition key
- Partition key and sort key