I'm trying to run the following code to write into dynamodb via a POST method but getting an error:
{
"httpMethod":"POST",
"body": {
"TableName":"LamdaTest",
"Item":{
"ID":"1",
"Name":"Foobar"
}
}
}
ERROR MESSAGE:
Parameter validation failed: Invalid type for parameter Item.ID, value: 1, type: <class 'str'>, valid types: <class 'dict'>\nInvalid type for parameter Item.Name, value: Foobar, type: <class 'str'>, valid types: <class 'dict'>",