class Amazonite::DynamoDB::Get

Overview

Specifies an item and related attribute values to retrieve in a TransactGetItem object.

Included Modules

Defined in:

dynamodb/get.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(key : Hash(String, AttributeValue), table_name : String, projection_expression : String | Nil = nil, expression_attribute_names : Hash(String, String) | Nil = nil) #

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

[View source]
def self.new(*, __pull_for_json_serializable 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 expression_attribute_names : Hash(String, String) | Nil #

One or more substitution tokens for attribute names in the ProjectionExpression parameter.


[View source]
def expression_attribute_names=(expression_attribute_names : Hash(String, String) | Nil) #

One or more substitution tokens for attribute names in the ProjectionExpression parameter.


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

See Object#hash(hasher)


def key : Hash(String, AttributeValue) #

A map of attribute names to AttributeValue objects that specifies the primary key of the item to retrieve.


[View source]
def key=(key : Hash(String, AttributeValue)) #

A map of attribute names to AttributeValue objects that specifies the primary key of the item to retrieve.


[View source]
def projection_expression : String | Nil #

A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.


[View source]
def projection_expression=(projection_expression : String | Nil) #

A string that identifies one or more attributes of the specified item to retrieve from the table. The attributes in the expression must be separated by commas. If no attribute names are specified, then all attributes of the specified item are returned. If any of the requested attributes are not found, they do not appear in the result.


[View source]
def table_name : String #

The name of the table from which to retrieve the specified item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.


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

The name of the table from which to retrieve the specified item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.


[View source]
def validate! : Nil #

[View source]