UNPKG

@wmfs/statebox

Version:

Orchestrate Node functions using Amazon States Language

20 lines (17 loc) 337 B
const schema = { type: 'object', properties: { message: { type: 'string' }, somethingElse: { type: 'string' } }, required: ['message'] } module.exports = class Goodbye { init (resourceConfig, env) { this.schema = schema } run (event, context) { console.log('GOODBYE!') context.sendTaskSuccess() } }