Published
Edited
Dec 15, 2018
Importers
5 stars
O-AWS (alpha)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
listLambdaFunctions = () => {
let lambda = new OAWS.Lambda();
return lambda.listFunctions().promise().then((json) => json.Functions);
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
invokeLambdaFunction = (functionName, options = {}) => {
let lambda = new OAWS.Lambda();
return lambda.invoke(Object.assign({FunctionName: functionName }, options)).promise();
}
Insert cell
Insert cell
viewof selectedInvokeFunction = radio(availableLambdaFunctions.map(e => e.FunctionName))
Insert cell
Insert cell
invokeResults = {
return invokeLambdaFunction(selectedInvokeFunction)
}
Insert cell
md`### ${JSON.parse(invokeResults.Payload).body}`
Insert cell
Insert cell
Insert cell
AWS = require('aws-sdk@2.376.0/dist/aws-sdk-react-native.js')
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more