The key point is that it is ConditionExpressionconsidered on different data sets depending on the operation PutItem
or UpdateItem performed .
PutItem.
ConditionExpression DynamoDB Key - , range , 1, .
, DynamoDB PutItem , , .
, CUSTOMER_CONTACTS customer_id/contact_email , ConditionExpression = "#contact_email <> :email". PutItem ConditionalCheckFailedException, ( ).
. DynamoDB .
.
, ConditionExpression = "#contact_email <> :email", . ? UpdateItem 1 , , .
UpdateItem ConditionExpression , , . .