In this section we will create tests to see if the functions are working properly.
To test the functions, download the following file to your computer: Run the following command to write data to table:
You are done creating Lambda functions that interact with DynamoDB. In the next post we will authenticate to the archive with the Amplify library.aws dynamodb batch-write-item --request-items file://documentData.json
Test listing functions
tc_1 for event name{
"pathParameters": {
"id": "abcd1234"
}
}


Test creating function
tc_1 for event name{
"body":{
"user_id": "abcd1234",
"file": "aws_serverless.doc",
"folder": "",
"identityId": "123456cvbn",
"modified": "13-03-2023",
"size": "2MB",
"type": "doc",
"tag": "aws, serverless"
}
}



Test deleting function
tc_1 for event name{
"pathParameters": {
"id": "abcd1234"
},
"queryStringParameters": {
"file": "aws-exports.js"
}
}


