Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. new DynamoDBQueryExpression<XXX>()
  2. .withHashKeyValues(YYY).withKeyConditionExpression(GSI != NULL);
  3.  
  4. java.lang.IllegalArgumentException: Input value must not be null
  5.  
  6. com.amazonaws.AmazonServiceException: One or more parameter values were invalid: An AttributeValue may not contain an empty string
  7.  
  8. Map<String, AttributeValue> eav = new HashMap<String, AttributeValue>();
  9. eav.put(":val1", new AttributeValue().withS("Some value"));
  10.  
  11. DynamoDBQueryExpression<XXX> queryExpression = new DynamoDBQueryExpression<XXX>();
  12. queryExpression.withHashKeyValues(hashKeyValues);
  13. queryExpression.withFilterExpression("docType <> :val1").withExpressionAttributeValues(eav);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement