class
Amazonite::DynamoDB::ConditionCheck
- Amazonite::DynamoDB::ConditionCheck
- Reference
- Object
Overview
Represents a request to perform a check that an item exists or to check the condition of specific attributes of the item.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/condition_check.crConstructors
- .new(key : Hash(String, AttributeValue), table_name : String, condition_expression : String, 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)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#condition_expression : String
A condition that must be satisfied in order for a conditional update to succeed.
-
#condition_expression=(condition_expression : String)
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) -
#key : Hash(String, AttributeValue)
The primary key of the item to be checked.
-
#key=(key : Hash(String, AttributeValue))
The primary key of the item to be checked.
-
#return_values_on_condition_check_failure : ReturnValuesOnConditionCheckFailure | Nil
Use
ReturnValuesOnConditionCheckFailureto get the item attributes if theConditionCheckcondition fails. -
#return_values_on_condition_check_failure=(return_values_on_condition_check_failure : ReturnValuesOnConditionCheckFailure | Nil)
Use
ReturnValuesOnConditionCheckFailureto get the item attributes if theConditionCheckcondition fails. -
#table_name : String
Name of the table for the check item request.
-
#table_name=(table_name : String)
Name of the table for the check item request.
- #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. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
A condition that must be satisfied in order for a conditional update to succeed. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
One or more substitution tokens for attribute names in an expression. For more information, see Expression attribute names in the Amazon DynamoDB Developer Guide.
One or more substitution tokens for attribute names in an expression. For more information, see Expression attribute names in the Amazon DynamoDB Developer Guide.
One or more values that can be substituted in an expression. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
One or more values that can be substituted in an expression. For more information, see Condition expressions in the Amazon DynamoDB Developer Guide.
The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
The primary key of the item to be checked. Each element consists of an attribute name and a value for that attribute.
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.
Use ReturnValuesOnConditionCheckFailure to get the item attributes if the ConditionCheck
condition fails. For ReturnValuesOnConditionCheckFailure, the valid values are: NONE and
ALL_OLD.
Name of the table for the check item request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.
Name of the table for the check item request. You can also provide the Amazon Resource Name (ARN) of the table in this parameter.