amazonka-dynamodb-2.0: Amazon DynamoDB SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.DynamoDB.Types.AttributeValue

Description

 
Synopsis

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.

Constructors

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

Instances

Instances details
FromJSON AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

ToJSON AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

Generic AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

Associated Types

type Rep AttributeValue :: Type -> Type #

Read AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

Show AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

NFData AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

Methods

rnf :: AttributeValue -> () #

Eq AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

Hashable AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

type Rep AttributeValue Source # 
Instance details

Defined in Amazonka.DynamoDB.Types.AttributeValue

type Rep AttributeValue = D1 ('MetaData "AttributeValue" "Amazonka.DynamoDB.Types.AttributeValue" "amazonka-dynamodb-2.0-GNxlseyeFiu302JKQwQrUS" 'False) (((C1 ('MetaCons "L" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector AttributeValue))) :+: C1 ('MetaCons "NS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Text)))) :+: (C1 ('MetaCons "M" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Map Text AttributeValue))) :+: (C1 ('MetaCons "NULL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "N" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))) :+: ((C1 ('MetaCons "BS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Base64))) :+: C1 ('MetaCons "B" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Base64))) :+: (C1 ('MetaCons "SS" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Vector Text))) :+: (C1 ('MetaCons "S" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :+: C1 ('MetaCons "BOOL" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool))))))