class
Amazonite::DynamoDB::AttributeValue
- Amazonite::DynamoDB::AttributeValue
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/attribute_value.crConstructors
- .new(pull : JSON::PullParser)
- .new(s : String | Nil = nil, n : String | Nil = nil, b : Bytes | Nil = nil, ss : Array(String) | Nil = nil, ns : Array(String) | Nil = nil, bs : Array(Bytes) | Nil = nil, m : Hash(String, AttributeValue) | Nil = nil, l : Array(AttributeValue) | Nil = nil, null : Bool | Nil = nil, bool : Bool | Nil = nil)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#b : Bytes | Nil
An attribute of type Binary.
-
#b=(b : Bytes | Nil)
An attribute of type Binary.
-
#bool : Bool | Nil
An attribute of type Boolean.
-
#bool=(bool : Bool | Nil)
An attribute of type Boolean.
-
#bs : Array(Bytes) | Nil
An attribute of type Binary Set.
-
#bs=(bs : Array(Bytes) | Nil)
An attribute of type Binary Set.
-
#hash(hasher)
See
Object#hash(hasher) -
#l : Array(AttributeValue) | Nil
An attribute of type List.
-
#l=(l : Array(AttributeValue) | Nil)
An attribute of type List.
-
#m : Hash(String, AttributeValue) | Nil
An attribute of type Map.
-
#m=(m : Hash(String, AttributeValue) | Nil)
An attribute of type Map.
-
#n : String | Nil
An attribute of type Number.
-
#n=(n : String | Nil)
An attribute of type Number.
-
#ns : Array(String) | Nil
An attribute of type Number Set.
-
#ns=(ns : Array(String) | Nil)
An attribute of type Number Set.
-
#null : Bool | Nil
An attribute of type Null.
-
#null=(null : Bool | Nil)
An attribute of type Null.
-
#s : String | Nil
An attribute of type String.
-
#s=(s : String | Nil)
An attribute of type String.
-
#ss : Array(String) | Nil
An attribute of type String Set.
-
#ss=(ss : Array(String) | Nil)
An attribute of type String Set.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
An attribute of type Binary. For example:
"B": "dGhpcyB0ZXh0IGlzIGJhc2U2NC1lbmNvZGVk"
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
An attribute of type Binary Set. For example:
"BS": ["U3Vubnk=", "UmFpbnk=", "U25vd3k="]
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]
An attribute of type List. For example:
"L": [ {"S": "Cookies"} , {"S": "Coffee"}, {"N": "3.14159"}]
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
An attribute of type Map. For example:
"M": {"Name": {"S": "Joe"}, "Age": {"N": "35"}}
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.
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.
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.
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.
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]
An attribute of type String Set. For example:
"SS": ["Giraffe", "Hippo" ,"Zebra"]