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
| console.log('Loading function'); | |
| var AWS = require('aws-sdk'); | |
| AWS.config.region = 'us-west-2'; | |
| exports.handler = function(event, context) { | |
| console.log("\n\nLoading handler\n\n"); | |
| var sns = new AWS.SNS(); | |
| sns.publish({ |
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
| var AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: '{AWS_KEY}', | |
| secretAccessKey: '{AWS_SECRET}', | |
| region: '{SNS_REGION}' | |
| }); | |
| var sns = new AWS.SNS(); |
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
| protocol ObfuscatorProtocol { | |
| #if DEBUG | |
| func bytesByObfuscatingString(_ string: String) -> [UInt8] | |
| #endif | |
| func reveal(_ key: [UInt8]) -> String | |
| } | |
| class Obfuscator: ObfuscatorProtocol { | |
| // MARK: - Variables |
NewerOlder