attributeValue

Creates a new AttributeValue from the provided value.

Return

A StringValue (of value) if value is a String.

An IntValue (of value) if value is an Int.

A FloatValue (of value) if value is a Float.

A DoubleValue (of value) if value is a Double.

A BooleanValue (of value) if value is a Boolean.

A ValueTypeError if value is not a valid attribute value type.