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
| // config.js | |
| const AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: 'YOUR_ACCESS_KEY', | |
| secretAccessKey: 'YOUR_SECRET_ACCESS_KEY' | |
| }); | |
| module.exports = new AWS.S3(); |
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
| npm install aws-sdk |
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
| npm install aws-sdk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Readme |
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
| const handleCloseGenerateCodeDialog = () => { | |
| onClose(); | |
| }; |
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
| /*global exports, require*/ | |
| var convert = require("./convert"); | |
| exports.handler = async function (event, context) { | |
| "use strict"; | |
| let body; | |
| let statusCode = 200; | |
| const headers = { | |
| "Content-Type": "application/json", |
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
| /*global require, module, console */ | |
| var path = require("path"), | |
| fs = require("fs"), | |
| os = require("os"), | |
| uuid = require("uuid"), | |
| s3 = require("./s3-util"); | |
| var synthesizeText = require("./synthesize-text"); | |
| const { env } = require("process"); |
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
| /*global module, require, Promise, console */ | |
| var aws = require("aws-sdk"), | |
| path = require("path"), | |
| fs = require("fs"), | |
| os = require("os"), | |
| uuid = require("uuid"), | |
| s3 = new aws.S3(), | |
| downloadFromS3 = function (bucket, fileKey) { | |
| "use strict"; |
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
| const AWS = require("aws-sdk"); | |
| var languageConfiguration = require("./language-configuration"); | |
| const polly = new AWS.Polly({ | |
| signatureVersion: "v4", | |
| region: process.env.AWS_REGION, | |
| }); | |
| const readTextFile = (filePath) => { |