0

I have a entity which looks like

public class MyEntity {

@DynamoDBHashKey
private String myHashKey;

@DynamoDBRangeKey 
private String myRangeKey;

@DynamoDBAttribute 
private List<MyObject> myObjectsList;
...
}

Previously I used a updateExpression with set and list_append which worked great and each new element has been added to a List. Now I wanna use a DynamoDB Encryption Client for Java to encrypt my data in table. I configured a DynamoDBEncryptor and DynamoDBMapper from docs I realized that I should set config like DynamoDBMaperConfig.SaveBehaviour.PUT or CLOBBER to be able to use this mapper with encryption client but this two option overrides elements in List(for mapper config also existing an option APPEND_SET which works like I expected but unfortunately doesn't work with encryption. I am wondering if there is a way to go to append new element to List using DynamoDBMapper or how it can be done using some expressions.

n3eq
  • 15
  • 5

0 Answers0