Skip to content

Instantly share code, notes, and snippets.

View vidanov's full-sized avatar

Alexey Vidanov vidanov

View GitHub Profile
@vidanov
vidanov / api_search
Created September 21, 2018 17:18
bottalk search in API request
params = {
RequestItems: {},
};
params.RequestItems[process.env.BlamG2Table]=[];
var i=0;
@vidanov
vidanov / step-functions.md
Last active November 28, 2021 10:16
AWS Step functions. InputPath, OutputPath, ResultPath

AWS Step functions

InputPath, OutputPath, ResultPath

  • InputPath -> the part of the original JSON payload to take to the step
  • OutPutPath -> the part of the original JSON payload to return after the step is completed
  • ResultPath -> here you can define a node to store the output you create in the step.

Please note "output" node is visible in the step function logs and here in the doc, but you do not have it in the function input. It means { "output": "1.05" } will be just

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject"
],
"Resource": [
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DelegateS3Access",
"Effect": "Allow",
"Principal": {
"AWS": "arn:aws:iam::12345678910:root"
},
"Action": [
'use strict';
const Alexa = require('ask-sdk-v1adapter');
const APP_ID = undefined;
/***********
Data: Customize the data below as you please.
***********/
const SKILL_NAME = "Five Minute Recipes";
const STOP_MESSAGE = "See you next time.";
'use strict';
const Alexa = require('ask-sdk-v1adapter');
const APP_ID = undefined;
/***********
Data: Customize the data below as you please.
***********/
const SKILL_NAME = "Quickmeal";
const STOP_MESSAGE = "See you next time.";
// This tutorial story is intended to represent the breadth of what the framework can do.
@start
*say
Welcome to the Skill Flow Builder. Let's get to know each other.
What is your name?
*show
title:'Skill Flow Builder'
subtitle:'Welcome to Skill Flow Builder!'
*then
slot playerName as 'AMAZON.US_FIRST_NAME'
// This tutorial story is intended to represent the breadth of what the framework can do.
@start
*say
Welcome to the Skill Flow Builder. Let's get to know each other.
What is your name?
*show
title:'Skill Flow Builder'
subtitle:'Welcome to Skill Flow Builder!'
*then
slot playerName as 'AMAZON.US_FIRST_NAME'
'use strict';
const Alexa = require('ask-sdk');
const Util = require('util.js');
/***********
Data: Customize the data below as you please.
***********/
const SKILL_NAME = "Am I A Toaster";