Here is the table that I have created and will insert an item to that.
https://www.edureka.co/community/39042/how-to-create-a-dynamodb-using-aws-cli
C:\Users\priyj_kumar\Desktop>aws dynamodb put-item --table-name EmployeeDetail --item "{""EmpID"":{""S"":""ED1""},""PhoneNo"":{""S"":""12344""}}" --return-consumed-capacity TOTAL
You must escape the double quotes else it won't work. This will give an output like this.
{
"ConsumedCapacity": {
"TableName": "EmployeeDetail",
"CapacityUnits": 1.0
}
}
Hope this helps.