DynamoDB Attribute Types
Atomic Types
Type | JSON | Value |
---|---|---|
Binary |
| String value containing the Base64-encoded binary data. |
Boolean |
| Either |
String |
| String value |
Number |
| String with the numerical value |
Null |
| Should always be |
Collection Types
Type | JSON | Value |
---|---|---|
List |
| A JSON array, with each element being an attribute with a type. |
Map |
| A JSON object, with the keys being the map keys, and the values being an attribute with a type. |
Set Types
Type | JSON | Value |
---|---|---|
Binary Set |
| A JSON array of Base-64-encoded binary data. |
Number Set |
| A JSON array of string with the numerical values. |
String Set |
| A JSON array of strings. |
Sources:
AttributeValue API documentation: this the definitive guide from AWS.
DynamoDB Item size and format: more info about the particulars of each attribute type.
Last updated