class
Amazonite::DynamoDB::Put
- Amazonite::DynamoDB::Put
- Reference
- Object
Overview
Represents a request to perform a PutItem operation.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/put.crConstructors
- .new(item : Hash(String, AttributeValue), table_name : String, condition_expression : String | Nil = nil, expression_attribute_names : Hash(String, String) | Nil = nil, expression_attribute_values : Hash(String, AttributeValue) | Nil = nil, return_values_on_condition_check_failure : ReturnValuesOnConditionCheckFailure | Nil = nil)
- .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. -
#condition_expression : String | Nil
A condition that must be satisfied in order for a conditional update to succeed.
-
#condition_expression=(condition_expression : String | Nil)
A condition that must be satisfied in order for a conditional update to succeed.
-
#expression_attribute_names : Hash(String, String) | Nil
One or more substitution tokens for attribute names in an expression.
-
#expression_attribute_names=(expression_attribute_names : Hash(String, String) | Nil)
One or more substitution tokens for attribute names in an expression.
-
#expression_attribute_values : Hash(String, AttributeValue) | Nil
One or more values that can be substituted in an expression.
-
#expression_attribute_values=(expression_attribute_values : Hash(String, AttributeValue) | Nil)
One or more values that can be substituted in an expression.
-
#hash(hasher)
See
Object#hash(hasher) -
#item : Hash(String, AttributeValue)
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem. -
#item=(item : Hash(String, AttributeValue))
A map of attribute name to attribute values, representing the primary key of the item to be written by
PutItem. -
#return_values_on_condition_check_failure : ReturnValuesOnConditionCheckFailure | Nil
Use
ReturnValuesOnConditionCheckFailureto get the item attributes if thePutcondition fails. -
#return_values_on_condition_check_failure=(return_values_on_condition_check_failure : ReturnValuesOnConditionCheckFailure | Nil)
Use
ReturnValuesOnConditionCheckFailureto get the item attributes if thePutcondition fails. -
#table_name : String
Name of the table in which to write the item.
-
#table_name=(table_name : String)
Name of the table in which to write the item.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
A condition that must be satisfied in order for a conditional update to succeed.
A condition that must be satisfied in order for a conditional update to succeed.
One or more substitution tokens for attribute names in an expression.
One or more substitution tokens for attribute names in an expression.
One or more values that can be substituted in an expression.
One or more values that can be substituted in an expression.
A map of attribute name to attribute values, representing the primary key of the item to be
written by PutItem. All of the table's primary key attributes must be specified, and their
data types must match those of the table's key schema. If any attributes are present in the item
that are part of an index key schema for the table, their types must match the index key schema.
A map of attribute name to attribute values, representing the primary key of the item to be
written by PutItem. All of the table's primary key attributes must be specified, and their
data types must match those of the table's key schema. If any attributes are present in the item
that are part of an index key schema for the table, their types must match the index key schema.
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the Put condition
fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and ALL_OLD.
Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
Name of the table in which to write the item. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.