struct

AWSLambdaEvents::DynamoDB::AttributeValue

Inherits Struct < Value < Object

Tagged union for DynamoDB native attribute values. See: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_AttributeValue.html

Constructors

binary(value : Bytes) : self
Source
binary_set(value : Array(Bytes)) : self
Source
boolean(value : Bool) : self
Source
list(value : Array(AttributeValue)) : self
Source
map(value : Hash(String, AttributeValue)) : self
Source
new(raw : Raw, type : Type)
Source
new(pull : JSON::PullParser) : self
Source
null
Source
number(value : String) : self
Source
number(value : Number) : self
Source
number_set(value : Array(String)) : self
Source
string(value : String) : self

Constructors per type

Source
string_set(value : Array(String)) : self
Source

Instance methods

as_b
Source
as_b?
Source
as_bool
Source
as_bool?
Source
as_bs
Source
as_bs?
Source
as_f

Parse the N attribute as Float64. Raises on a non-numeric payload.

Source
as_i

Parse the N attribute as Int64. Raises on a non-integer payload.

Source
as_l
Source
as_l?
Source
as_m
Source
as_m?
Source
as_n
Source
as_n?
Source
as_ns
Source
as_ns?
Source
as_s
Source
as_s?
Source
as_ss
Source
as_ss?
Source
null?
Source
to_json(builder : JSON::Builder) : Nil
Source
type
Source

Nested types