Skip to content

AttributeValueDict

Union Type

AttributeValueDict module-attribute

Dictionary form of AttributeValue, setting exactly one variant.

Union Member Types

AttributeValueSDict

Bases: TypedDict

Attributes

s instance-attribute
s: str

An attribute of type String. For example:

"S": "Hello"

AttributeValueNDict

Bases: TypedDict

Attributes

n instance-attribute
n: str

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.

AttributeValueBDict

Bases: TypedDict

Attributes

b instance-attribute
b: bytes

An attribute of type Binary. For example:

"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"

AttributeValueSSDict

Bases: TypedDict

Attributes

ss instance-attribute

An attribute of type String Set. For example:

"SS": ["Giraffe", "Hippo" ,"Zebra"]

AttributeValueNSDict

Bases: TypedDict

Attributes

ns instance-attribute

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.

AttributeValueBSDict

Bases: TypedDict

Attributes

bs instance-attribute

An attribute of type Binary Set. For example:

"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]

AttributeValueMDict

Bases: TypedDict

Attributes

m instance-attribute

An attribute of type Map. For example:

"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}

AttributeValueLDict

Bases: TypedDict

Attributes

l instance-attribute

An attribute of type List. For example:

"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]

AttributeValueNULLDict

Bases: TypedDict

Attributes

null instance-attribute
null: bool

An attribute of type Null. For example:

"NULL": true

AttributeValueBOOLDict

Bases: TypedDict

Attributes

bool_ instance-attribute
bool_: bool

An attribute of type Boolean. For example:

"BOOL": true