AttributeValue¶
Union Type¶
AttributeValue
module-attribute
¶
AttributeValue = Union[AttributeValueS | AttributeValueN | AttributeValueB | AttributeValueSS | AttributeValueNS | AttributeValueBS | AttributeValueM | AttributeValueL | AttributeValueNULL | AttributeValueBOOL | AttributeValueUnknown]
Represents the data for an attribute.
Each attribute value is described as a name-value pair. The name is the data type, and the value is the data itself.
For more information, see Data Types in the Amazon DynamoDB Developer Guide.
Union Member Types¶
AttributeValueS
dataclass
¶
AttributeValueN
dataclass
¶
Bases: _SerdeShape
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.
AttributeValueB
dataclass
¶
AttributeValueSS
dataclass
¶
AttributeValueNS
dataclass
¶
Bases: _SerdeShape
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.
AttributeValueBS
dataclass
¶
AttributeValueM
dataclass
¶
Bases: _SerdeShape
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
Attributes¶
AttributeValueL
dataclass
¶
Bases: _SerdeShape
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]