Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka.com> |
Stability | experimental |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Documentation
data AttributeValue Source #
Represents the data for an attribute.
DynamoDB sends and receives JSON objects which contain a single item whose key is a data type and the value is the data itself. We provide an actual sum type to interact with these.
For more information, see Data Types in the Amazon DynamoDB Developer Guide.
L (Vector AttributeValue) | An attribute of type List. For example: "L": [{"S": "Cookies"} , {"S": "Coffee"}, {"N", "3.14159"}] |
NS (Vector Text) | An attribute of type Number Set. For example: "NS": ["42.2", "-19", "7.5", "3.14"] Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations. |
M (Map Text AttributeValue) | An attribute of type Map. For example: "M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}} |
NULL | An attribute of type Null. For example: "NULL": true |
N Text | An attribute of type Number. For example: "N": "123.45" Numbers are sent across the network to DynamoDB as strings, to maximize compatibility across languages and libraries. However, DynamoDB treats them as number type attributes for mathematical operations. |
BS (Vector Base64) | An attribute of type Binary Set. For example: "BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="] |
B Base64 | An attribute of type Binary. For example: "B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk" |
SS (Vector Text) | An attribute of type String Set. For example: "SS": ["Giraffe", "Hippo" ,"Zebra"] |
S Text | An attribute of type String. For example: "S": "Hello" |
BOOL Bool | An attribute of type Boolean. For example: "BOOL": true |