diff --git a/moto/dynamodb2/responses.py b/moto/dynamodb2/responses.py index 76bba9e49..91d2f45ee 100644 --- a/moto/dynamodb2/responses.py +++ b/moto/dynamodb2/responses.py @@ -179,14 +179,14 @@ class DynamoHandler(BaseResponse): item = dynamodb_backend2.delete_item(table_name, keys) response = { - "Responses": { - "Thread": { - "ConsumedCapacityUnits": 1.0 - }, - "Reply": { - "ConsumedCapacityUnits": 1.0 - } - }, + "ConsumedCapacity": [ + { + 'TableName': table_name, + 'CapacityUnits': 1.0, + 'Table': {'CapacityUnits': 1.0} + } for table_name, table_requests in table_batches.items() + ], + "ItemCollectionMetrics": {}, "UnprocessedItems": {} }