CLI Command: $ aws dynamodb batch-write-item --request-item file://db_mobile_block_1.json
Getting Error: An error occurred (ValidationException) when calling the BatchWriteItem operation: 1 validation error detected: Value '{uns-prod-blocked-mobile-numbers= [ WriteRequest (putRequest=PutRequest(item={mobile=com.amazonaws.dynamodb.v20120810.AttributeValue@bbfde161}, workloadProfileName=null), deleteRequest=null), WriteRequest (putRequest=PutRequest(item={mobile=com.amazonaws.dynamodb.v20120810.AttributeValue@2e6bc812}, workloadProfileName=null), deleteRequest=null),
WriteRequest (putRequest=PutRequest(item={mobile=com.amazonaws.dynamodb.v20120810.AttributeValue@850aefcc}, workloadProfileName=null), deleteRequest=null), WriteRequest (putRequest=PutRequest(item={mobile=com.amazonaws.dynamodb.v20120810.AttributeValue@63c269ec}, workloadProfileName=null), deleteRequest=null) ] }' at 'requestItems' failed to satisfy constraint: Map value must satisfy constraint: [Member must have length less than or equal to 25, Member must have length greater than or equal to 1]
BatchWritehas a limit of 25 items per request. You should split your JSON into smaller chunks before sending a request - Vlad Holubiev