{"version":"1.0","type":"rich","title":"get-departure-step-fn","description":"This example shows an AWS Lambda function that triggers a Step Functions state machine to fetch departure data for a given ID and date. It lists all state machines, filters for one named `GetDepartureMachine`, and starts an execution with the query parameters as JSON input. The code uses the AWS SDK for JavaScript (`aws-sdk`) with `AWS.StepFunctions`, `co` for generator-based control flow, and `Promise` from Bluebird. It returns the execution ARN in an HTTP response, logging “finish” before invoking the callback.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-d38fe2535d4467ab1b332ff2cfe00c69?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}