Created
May 26, 2022 10:27
-
-
Save tanerochris/fa6fadad317743e00c938f52f481f67b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Path: dynamoDB/getReportCompletionStatus/index.js | |
*/ | |
const AWS = require('aws-sdk'); | |
const ddb = new AWS.DynamoDB.DocumentClient({ | |
region: 'eu-central-1' | |
}); | |
/** | |
* Lamba function used to get the report status | |
* INPUT: user_id, partita_iva | |
* OUTPUT: status | |
*/ | |
exports.handler = async (event, context, callback) => { | |
const partita_iva = event.partita_iva | |
callback(null, { | |
statusCode: 200, | |
body: { status: 'complete'}, | |
headers: { | |
'Access-Control-Allow-Origin': "*" | |
}, | |
}); | |
}; | |
function getCompletionStatus() { | |
// code to get completion status; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment