class Amazonite::DynamoDB::AttributeDefinition

Overview

Represents an attribute for describing the schema for the table and indexes.

Included Modules

Defined in:

dynamodb/attribute_definition.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(attribute_name : String, attribute_type : ScalarAttributeType) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

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_name : String #

A name for the attribute.


[View source]
def attribute_name=(attribute_name : String) #

A name for the attribute.


[View source]
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


[View source]
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


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def validate! : Nil #

[View source]