I read this: Is there a way to enforce unique constraint on a property (field) other than the primary key in dynamodb
Not sure if that completely answers my use case.
I have 3 attributes in dynamodb.
| A | B | C |
All A and B both attributes are unique across the entire table. I mean there can be 2 items
A = 1, B = 2 ; A = 2, B = 1
but there cannot be 2 items
A = 1, B = 1; A = 2, B = 1
OR
A = 1, B = 1; A = 1, B = 2
How can I insert a new value in that dynamodb (without denormalizing that table) such that I don't break that DB constraints? I think conditional expressions work off primary key http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Expressions.SpecifyingConditions.html and Transaction manager https://java.awsblog.com/post/Tx13H2W58QMAOA7/Performing-Conditional-Writes-Using-the-Amazon-DynamoDB-Transaction-Library also might not work since I think it detects changes to the records retrieved with same primary key attribute and not with the other unique attribute