On DynamoDB read write capacity changes according to various factors and it is tedious and error prone to calculate it myself on each query. So I want to get capacity that I consume per query. Is there any API method to do that?
CodePudding user response:
If you check the documentation, you'll see there is a ReturnConsumedCapacity
attribute you can pass as part of your query. You will get back the consumed capacity in your query response.