This single-file project deploys a complete API through AWS API Gateway. The API is capable of getting, putting, and deleting records from a DynamoDB table and sending emails using Simple Email Service (SES).
Saves a record in the DynamoDB table. Overwrites existing records.
Request Body: Arbitrary JSON object
Response Body: {}
Get a record from the DynamoDB table. Returns the values of the record:
Response Body: JSON object with values from record
Deletes a record from the DynamoDB table.
Response Body: {}
Sends an email from demo@stackery.io
(you'll need to change this to an email you have verified in SES before deploying)
Request Body:
{
"to": "<recipient>",
"subject": "<subject>",
"body": "<body>"
}
Response Body:
{
"SendEmailResponse": {
"ResponseMetadata": {
"RequestId": "<request ID>"
},
"SendEmailResult": {
"MessageId": "<message ID>"
}
}
}