class
Amazonite::DynamoDB::AttributeDefinition
- Amazonite::DynamoDB::AttributeDefinition
- Reference
- Object
Overview
Represents an attribute for describing the schema for the table and indexes.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/attribute_definition.crConstructors
- .new(attribute_name : String, attribute_type : ScalarAttributeType)
- .new(pull : JSON::PullParser)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#attribute_name : String
A name for the attribute.
-
#attribute_name=(attribute_name : String)
A name for the attribute.
-
#attribute_type : ScalarAttributeType
The data type for the attribute, where:
-
#attribute_type=(attribute_type : ScalarAttributeType)
The data type for the attribute, where:
-
#hash(hasher)
See
Object#hash(hasher) - #validate! : Nil
Constructor Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
def attribute_type : ScalarAttributeType
#
The data type for the attribute, where:
-
S- the attribute is of type String -
N- the attribute is of type Number -
B- the attribute is of type Binary
def attribute_type=(attribute_type : ScalarAttributeType)
#
The data type for the attribute, where:
-
S- the attribute is of type String -
N- the attribute is of type Number -
B- the attribute is of type Binary