AWS DynamoDB table has :
- Client (Primary Key),
- folder_location (non-key attribute),
- script_name (non-key attribute)
I want to retrieve records using Client and folder_location attributes using BatchGetItemRequest
.
But getting below error:
Failed to retrieve items.com.amazonaws.services.dynamodbv2.model.AmazonDynamoDBException: The provided key element does not match the schema (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ValidationException;
Is there a way to do with BatchGetItemRequest
only ?